Advisory Notifications API . projects . locations

Instance Methods

notifications()

Returns the notifications Resource.

close()

Close httplib2 connections.

getSettings(name, x__xgafv=None)

Get notification settings.

updateSettings(name, body=None, x__xgafv=None)

Update notification settings.

Method Details

close()
Close httplib2 connections.
getSettings(name, x__xgafv=None)
Get notification settings.

Args:
  name: string, Required. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Settings for Advisory Notifications.
  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
    "a_key": { # Settings for each NotificationType.
      "enabled": True or False, # Whether the associated NotificationType is enabled.
    },
  },
}
updateSettings(name, body=None, x__xgafv=None)
Update notification settings.

Args:
  name: string, Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings. (required)
  body: object, The request body.
    The object takes the form of:

{ # Settings for Advisory Notifications.
  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
    "a_key": { # Settings for each NotificationType.
      "enabled": True or False, # Whether the associated NotificationType is enabled.
    },
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Settings for Advisory Notifications.
  "etag": "A String", # Required. Fingerprint for optimistic concurrency returned in Get requests. Must be provided for Update requests. If the value provided does not match the value known to the server, ABORTED will be thrown, and the client should retry the read-modify-write cycle.
  "name": "A String", # Identifier. The resource name of the settings to retrieve. Format: organizations/{organization}/locations/{location}/settings or projects/{projects}/locations/{location}/settings.
  "notificationSettings": { # Required. Map of each notification type and its settings to get/set all settings at once. The server will validate the value for each notification type.
    "a_key": { # Settings for each NotificationType.
      "enabled": True or False, # Whether the associated NotificationType is enabled.
    },
  },
}