Google Cloud Pub/Sub policy

A Google Cloud Pub/Sub policy contains the connection details that are used by a Google Cloud PubSub Input or Google Cloud PubSub Request node when interacting with Google Cloud Pub/Sub.

You can use a Google Cloud PubSub Request node in a message flow to connect IBM® App Connect Enterprise to Google Cloud Pub/Sub and issue requests to create, retrieve, update, or delete objects such as subscriptions, topics, and messages. You can use a Google Cloud PubSub Input node to monitor Google Cloud Pub/Sub for new messages and to accept input. The Google Cloud Pub/Sub policy controls, at run time, access to the Google Cloud Pub/Sub application.

The Google Cloud Pub/Sub policy is created when you configure a connection between a Google Cloud PubSub Input or Google Cloud PubSub Request node and Google Cloud Pub/Sub by using the Connector Discovery wizard. During the process of discovery, account credentials are stored in the vault and connection details are stored in a Google Cloud Pub/Sub policy. The policy is created with a type of Google Cloud Pub/Sub, and the name of the policy is returned to the Google Cloud Pub/Sub node and specified in the Connection tab, in the format {policyProjectName}:policyName.

You can also create, update, or delete a Google Cloud Pub/Sub policy by using the Manage Discovery Connector Policies and Credentials wizard, which you can access by right-clicking the policy project in the IBM App Connect Enterprise Toolkit and then clicking New > Discovery Connector policies and credentials.

You must deploy this policy before message flows that use the policy are started. If you redeploy a Google Cloud Pub/Sub policy, all message flows that are using the policy will be stopped and restarted.

For more information about using Google Cloud Pub/Sub policies, see Using Google Cloud Pub/Sub with IBM App Connect Enterprise.

Table 1. Properties of the Google Cloud Pub/Sub policy
Property Property name in .policyxml file Description of properties
Credential Name credentialName This property specifies the name of the credential that will be used for the connection to Google Cloud Pub/Sub.

The specified credential can be defined during connector discovery and stored in the vault. Alternatively, you can specify an existing credential that was configured by using the mqsicredentials command or the server.conf.yaml file, or loaded through an external credential provider.

Google Cloud Pub/Sub Authentication method authenticationMethod This property specifies the type of authentication that is used for the connection between IBM App Connect Enterprise and Google Cloud Pub/Sub. This property is reserved for future use and must be set to the value BASIC.
Google Cloud Pub/Sub Application Type applicationType This property is reserved for future use and must be set to the value online.
Google Cloud Pub/Sub Application Version applicationVersion This property is reserved for future use and must be set to the value v1.
Project ID projectId This property specifies the Project ID for the Google Cloud Pub/Sub account, which is set in the Google Cloud Console.