diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index 9b761c2fe..4bca58018 100644 --- a/generated/google/apis/calendar_v3.rb +++ b/generated/google/apis/calendar_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/google-apps/calendar/firstapp module CalendarV3 VERSION = 'V3' - REVISION = '20200428' + REVISION = '20200517' # See, edit, share, and permanently delete all the calendars you can access using Google Calendar AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' diff --git a/generated/google/apis/calendar_v3/classes.rb b/generated/google/apis/calendar_v3/classes.rb index 2a3f442f5..778eaac68 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -821,7 +821,7 @@ module Google # - "eventHangout" for Hangouts for consumers (http://hangouts.google.com) # - "eventNamedHangout" for classic Hangouts for G Suite users (http://hangouts. # google.com) - # - "hangoutsMeet" for Hangouts Meet (http://meet.google.com) + # - "hangoutsMeet" for Google Meet (http://meet.google.com) # - "addOn" for 3P conference providers # Corresponds to the JSON property `type` # @return [String] diff --git a/generated/google/apis/container_v1beta1.rb b/generated/google/apis/container_v1beta1.rb index c671078b3..634ef1b11 100644 --- a/generated/google/apis/container_v1beta1.rb +++ b/generated/google/apis/container_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1beta1 VERSION = 'V1beta1' - REVISION = '20200501' + REVISION = '20200505' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/container_v1beta1/classes.rb b/generated/google/apis/container_v1beta1/classes.rb index ee0cd2817..6f29d727a 100644 --- a/generated/google/apis/container_v1beta1/classes.rb +++ b/generated/google/apis/container_v1beta1/classes.rb @@ -1008,6 +1008,12 @@ module Google # @return [Google::Apis::ContainerV1beta1::DatabaseEncryption] attr_accessor :desired_database_encryption + # DefaultSnatStatus contains the desired state of whether default sNAT should + # be disabled on the cluster. + # Corresponds to the JSON property `desiredDefaultSnatStatus` + # @return [Google::Apis::ContainerV1beta1::DefaultSnatStatus] + attr_accessor :desired_default_snat_status + # The desired image type for the node pool. # NOTE: Set the "desired_node_pool" field as well. # Corresponds to the JSON property `desiredImageType` @@ -1164,6 +1170,7 @@ module Google @desired_cluster_autoscaling = args[:desired_cluster_autoscaling] if args.key?(:desired_cluster_autoscaling) @desired_cluster_telemetry = args[:desired_cluster_telemetry] if args.key?(:desired_cluster_telemetry) @desired_database_encryption = args[:desired_database_encryption] if args.key?(:desired_database_encryption) + @desired_default_snat_status = args[:desired_default_snat_status] if args.key?(:desired_default_snat_status) @desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type) @desired_intra_node_visibility_config = args[:desired_intra_node_visibility_config] if args.key?(:desired_intra_node_visibility_config) @desired_locations = args[:desired_locations] if args.key?(:desired_locations) @@ -1423,6 +1430,27 @@ module Google end end + # DefaultSnatStatus contains the desired state of whether default sNAT should + # be disabled on the cluster. + class DefaultSnatStatus + include Google::Apis::Core::Hashable + + # Disables cluster default sNAT rules. + # Corresponds to the JSON property `disabled` + # @return [Boolean] + attr_accessor :disabled + alias_method :disabled?, :disabled + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @disabled = args[:disabled] if args.key?(:disabled) + end + end + # Configuration for NodeLocal DNSCache class DnsCacheConfig include Google::Apis::Core::Hashable @@ -2371,6 +2399,12 @@ module Google class NetworkConfig include Google::Apis::Core::Hashable + # DefaultSnatStatus contains the desired state of whether default sNAT should + # be disabled on the cluster. + # Corresponds to the JSON property `defaultSnatStatus` + # @return [Google::Apis::ContainerV1beta1::DefaultSnatStatus] + attr_accessor :default_snat_status + # Whether Intra-node visibility is enabled for this cluster. # This makes same node pod to pod traffic visible for VPC network. # Corresponds to the JSON property `enableIntraNodeVisibility` @@ -2400,6 +2434,7 @@ module Google # Update properties of this object def update!(**args) + @default_snat_status = args[:default_snat_status] if args.key?(:default_snat_status) @enable_intra_node_visibility = args[:enable_intra_node_visibility] if args.key?(:enable_intra_node_visibility) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) diff --git a/generated/google/apis/container_v1beta1/representations.rb b/generated/google/apis/container_v1beta1/representations.rb index 5a88a78d9..5b54a6639 100644 --- a/generated/google/apis/container_v1beta1/representations.rb +++ b/generated/google/apis/container_v1beta1/representations.rb @@ -160,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DefaultSnatStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DnsCacheConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -853,6 +859,8 @@ module Google property :desired_database_encryption, as: 'desiredDatabaseEncryption', class: Google::Apis::ContainerV1beta1::DatabaseEncryption, decorator: Google::Apis::ContainerV1beta1::DatabaseEncryption::Representation + property :desired_default_snat_status, as: 'desiredDefaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation + property :desired_image_type, as: 'desiredImageType' property :desired_intra_node_visibility_config, as: 'desiredIntraNodeVisibilityConfig', class: Google::Apis::ContainerV1beta1::IntraNodeVisibilityConfig, decorator: Google::Apis::ContainerV1beta1::IntraNodeVisibilityConfig::Representation @@ -948,6 +956,13 @@ module Google end end + class DefaultSnatStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :disabled, as: 'disabled' + end + end + class DnsCacheConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1203,6 +1218,8 @@ module Google class NetworkConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :default_snat_status, as: 'defaultSnatStatus', class: Google::Apis::ContainerV1beta1::DefaultSnatStatus, decorator: Google::Apis::ContainerV1beta1::DefaultSnatStatus::Representation + property :enable_intra_node_visibility, as: 'enableIntraNodeVisibility' property :network, as: 'network' property :subnetwork, as: 'subnetwork' diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index 4f3d34117..37979c1cb 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20181207' + REVISION = '20200512' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_alpha/classes.rb b/generated/google/apis/deploymentmanager_alpha/classes.rb index 8ae6e43fd..b0e48b064 100644 --- a/generated/google/apis/deploymentmanager_alpha/classes.rb +++ b/generated/google/apis/deploymentmanager_alpha/classes.rb @@ -56,14 +56,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -98,9 +98,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -110,6 +110,12 @@ module Google # @return [Array] attr_accessor :exempted_members + # + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -122,6 +128,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -174,9 +181,26 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DeploymentmanagerAlpha::Expr] attr_accessor :condition @@ -188,13 +212,29 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the users - # of that domain. For example, `google.com` or `example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For example, ` + # alice@example.com?uid=123456789012345678901`. If the user is recovered, this + # value reverts to `user:`emailid`` and the recovered user retains the role in + # the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid= + # 123456789012345678901`. If the service account is undeleted, this value + # reverts to `serviceAccount:`emailid`` and the undeleted service account + # retains the role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -272,24 +312,34 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels - # Name of the composite type, must follow the expression: [a-z]([-a-z0-9_.]`0,61` - # [a-z0-9])?. + # Name of the composite type, must follow the expression: `[a-z]([-a-z0-9_.]`0, + # 61`[a-z0-9])?`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -403,12 +453,7 @@ module Google # @return [String] attr_accessor :sys - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. + # The objects of the condition. # Corresponds to the JSON property `values` # @return [Array] attr_accessor :values @@ -423,7 +468,6 @@ module Google @op = args[:op] if args.key?(:op) @svc = args[:svc] if args.key?(:svc) @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) @values = args[:values] if args.key?(:values) end end @@ -533,14 +577,14 @@ module Google # @return [String] attr_accessor :description - # Provides a fingerprint to use in requests to modify a deployment, such as - # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly - # generated value that must be provided with update(), stop(), and cancelPreview( - # ) requests to perform optimistic locking. This ensures optimistic concurrency - # so that only one request happens at a time. + # Provides a fingerprint to use in requests to modify a deployment, such as ` + # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided with `update()`, `stop()`, and ` + # cancelPreview()` requests to perform optimistic locking. This ensures + # optimistic concurrency so that only one request happens at a time. # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify data. To get the latest fingerprint value, perform a - # get() request to a deployment. + # every request to modify data. To get the latest fingerprint value, perform a ` + # get()` request to a deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -558,41 +602,52 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels # Output only. URL of the manifest representing the last manifest that was - # successfully deployed. + # successfully deployed. If no manifest has been successfully deployed, this + # field will be absent. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, # and all following characters must be a dash, lowercase letter, or digit, # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation - # Output only. Map of outputs from the last manifest that deployed successfully. + # Output only. List of outputs from the last manifest that deployed successfully. # Corresponds to the JSON property `outputs` - # @return [Array] + # @return [Array] attr_accessor :outputs # Output only. Server defined URL for the resource. @@ -663,16 +718,16 @@ module Google end end - # - class DeploymentOutputsEntry + # Output object for Deployments + class DeploymentOutputEntry include Google::Apis::Core::Hashable - # + # Key of the output # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -706,9 +761,9 @@ module Google # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 - # characters long and must conform to the following regular expression: [a-z]([- - # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and - # must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -761,15 +816,15 @@ module Google class DeploymentsCancelPreviewRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a - # randomly generated value that must be provided in cancelPreview() requests to - # perform optimistic locking. This ensures optimistic concurrency so that the + # Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided in `cancelPreview()` requests + # to perform optimistic locking. This ensures optimistic concurrency so that the # deployment does not have conflicting requests (e.g. if someone attempts to # make a new update request while another user attempts to cancel a preview, # this would prevent one of the requests). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -815,15 +870,15 @@ module Google class DeploymentsStopRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for stop() requests. A fingerprint is a randomly - # generated value that must be provided in stop() requests to perform optimistic - # locking. This ensures optimistic concurrency so that the deployment does not - # have conflicting requests (e.g. if someone attempts to make a new update - # request while another user attempts to stop an ongoing update request, this - # would prevent a collision). + # Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly + # generated value that must be provided in `stop()` requests to perform + # optimistic locking. This ensures optimistic concurrency so that the deployment + # does not have conflicting requests (e.g. if someone attempts to make a new + # update request while another user attempts to stop an ongoing update request, + # this would prevent a collision). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -865,33 +920,48 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Textual representation of an expression in Common Expression Language syntax. - # The application context of the containing message determines which well-known - # feature set of CEL is supported. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing its - # purpose. This can be used e.g. in UIs which allow to enter the expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -926,23 +996,36 @@ module Google # @return [String] attr_accessor :etag - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DeploymentmanagerAlpha::Policy] attr_accessor :policy @@ -1043,10 +1126,8 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` # Corresponds to the JSON property `counter` # @return [Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptions] attr_accessor :counter @@ -1105,13 +1186,16 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` class LogConfigCounterOptions include Google::Apis::Core::Hashable + # Custom fields. + # Corresponds to the JSON property `customFields` + # @return [Array] + attr_accessor :custom_fields + # The field value to attribute. # Corresponds to the JSON property `field` # @return [String] @@ -1128,21 +1212,45 @@ module Google # Update properties of this object def update!(**args) + @custom_fields = args[:custom_fields] if args.key?(:custom_fields) @field = args[:field] if args.key?(:field) @metric = args[:metric] if args.key?(:metric) end end + # Custom fields. These can be used to create a counter with arbitrary field/ + # value pairs. See: go/rpcsp-custom-fields. + class LogConfigCounterOptionsCustomField + include Google::Apis::Core::Hashable + + # Name is the field name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value is the field value. It is important that in contrast to the + # CounterOptions.field, the value here is a constant that is not derived from + # the IAMContext. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Write a Data Access (Gin) log class LogConfigDataAccessOptions include Google::Apis::Core::Hashable - # Whether Gin logging should happen in a fail-closed manner at the caller. This - # is relevant only in the LocalIAM implementation, for now. - # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while - # work is being done to satisfy the requirements of go/345. Currently, setting - # LOG_FAIL_CLOSED mode will have no effect, but still exists because there is - # active work being done to support it (b/115874152). + # # Corresponds to the JSON property `logMode` # @return [String] attr_accessor :log_mode @@ -1291,11 +1399,21 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -1329,19 +1447,19 @@ module Google attr_accessor :error # [Output Only] If the operation fails, this field contains the HTTP error - # message that was returned, such as NOT FOUND. + # message that was returned, such as `NOT FOUND`. # Corresponds to the JSON property `httpErrorMessage` # @return [String] attr_accessor :http_error_message # [Output Only] If the operation fails, this field contains the HTTP error - # status code that was returned. For example, a 404 means the resource was not + # status code that was returned. For example, a `404` means the resource was not # found. # Corresponds to the JSON property `httpErrorStatusCode` # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -1353,19 +1471,19 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always `compute#operation` for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The type of operation, such as insert, update, or delete, and so - # on. + # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, + # and so on. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -1379,9 +1497,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -1391,14 +1507,19 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined URL for this resource with the resource id. + # Corresponds to the JSON property `selfLinkWithId` + # @return [String] + attr_accessor :self_link_with_id + # [Output Only] The time that this operation was started by the server. This # value is in RFC3339 text format. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # [Output Only] The status of the operation, which can be one of the following: - # PENDING, RUNNING, or DONE. + # [Output Only] The status of the operation, which can be one of the following: ` + # PENDING`, `RUNNING`, or `DONE`. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1422,7 +1543,8 @@ module Google # @return [String] attr_accessor :target_link - # [Output Only] User who requested the operation, for example: user@example.com. + # [Output Only] User who requested the operation, for example: `user@example.com` + # . # Corresponds to the JSON property `user` # @return [String] attr_accessor :user @@ -1433,9 +1555,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1461,6 +1582,7 @@ module Google @progress = args[:progress] if args.key?(:progress) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) + @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -1653,23 +1775,36 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1678,8 +1813,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. `bindings` with no members will - # result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -1691,8 +1827,10 @@ module Google # returned in the response to `getIamPolicy`, and systems are expected to put # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1715,7 +1853,24 @@ module Google # @return [Array] attr_accessor :rules - # Deprecated. + # Specifies the format of the policy. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are + # rejected. + # Any operation that affects conditional role bindings must specify version `3`. + # This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding * Adding a + # conditional role binding to a policy * Changing a conditional role binding in + # a policy * Removing any role binding, with or without a condition, from a + # policy that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # To learn which resources support conditions in their IAM policies, see the [ + # IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1834,8 +1989,8 @@ module Google # @return [Array] attr_accessor :runtime_policies - # Output only. The type of the resource, for example compute.v1.instance, or - # cloudfunctions.v1beta1.function. + # Output only. The type of the resource, for example `compute.v1.instance`, or ` + # cloudfunctions.v1beta1.function`. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1994,7 +2149,7 @@ module Google # @return [String] attr_accessor :final_properties - # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent @@ -2406,9 +2561,9 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2418,11 +2573,21 @@ module Google # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -2465,7 +2630,7 @@ module Google # @return [String] attr_accessor :documentation_link - # Output only. Type of the output. Always deploymentManager#TypeInfo for + # Output only. Type of the output. Always `deploymentManager#TypeInfo` for # TypeInfo. # Corresponds to the JSON property `kind` # @return [String] @@ -2575,6 +2740,16 @@ module Google # @return [Google::Apis::DeploymentmanagerAlpha::Credential] attr_accessor :credential + # List of up to 2 custom certificate authority roots to use for TLS + # authentication when making calls on behalf of this type provider. If set, TLS + # authentication will exclusively use these roots instead of relying on publicly + # trusted certificate authorities when validating TLS certificate authenticity. + # The certificates must be in base64-encoded PEM format. The maximum size of + # each certificate must not exceed 10KB. + # Corresponds to the JSON property `customCertificateAuthorityRoots` + # @return [Array] + attr_accessor :custom_certificate_authority_roots + # An optional textual description of the resource; provided by the client when # the resource is created. # Corresponds to the JSON property `description` @@ -2598,28 +2773,38 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, # and all following characters must be a dash, lowercase letter, or digit, # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -2642,6 +2827,7 @@ module Google def update!(**args) @collection_overrides = args[:collection_overrides] if args.key?(:collection_overrides) @credential = args[:credential] if args.key?(:credential) + @custom_certificate_authority_roots = args[:custom_certificate_authority_roots] if args.key?(:custom_certificate_authority_roots) @description = args[:description] if args.key?(:description) @descriptor_url = args[:descriptor_url] if args.key?(:descriptor_url) @id = args[:id] if args.key?(:id) diff --git a/generated/google/apis/deploymentmanager_alpha/representations.rb b/generated/google/apis/deploymentmanager_alpha/representations.rb index 65f6145dd..40494bd85 100644 --- a/generated/google/apis/deploymentmanager_alpha/representations.rb +++ b/generated/google/apis/deploymentmanager_alpha/representations.rb @@ -118,7 +118,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class DeploymentOutputsEntry + class DeploymentOutputEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -202,6 +202,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogConfigCounterOptionsCustomField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogConfigDataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -459,6 +465,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -541,7 +548,6 @@ module Google property :op, as: 'op' property :svc, as: 'svc' property :sys, as: 'sys' - property :value, as: 'value' collection :values, as: 'values' end end @@ -592,7 +598,7 @@ module Google property :name, as: 'name' property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerAlpha::Operation, decorator: Google::Apis::DeploymentmanagerAlpha::Operation::Representation - collection :outputs, as: 'outputs', class: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry, decorator: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputsEntry::Representation + collection :outputs, as: 'outputs', class: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputEntry, decorator: Google::Apis::DeploymentmanagerAlpha::DeploymentOutputEntry::Representation property :self_link, as: 'selfLink' property :target, as: 'target', class: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerAlpha::TargetConfiguration::Representation @@ -611,7 +617,7 @@ module Google end end - class DeploymentOutputsEntry + class DeploymentOutputEntry # @private class Representation < Google::Apis::Core::JsonRepresentation property :key, as: 'key' @@ -733,11 +739,21 @@ module Google class LogConfigCounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :custom_fields, as: 'customFields', class: Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptionsCustomField::Representation + property :field, as: 'field' property :metric, as: 'metric' end end + class LogConfigCounterOptionsCustomField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class LogConfigDataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -800,6 +816,7 @@ module Google property :progress, as: 'progress' property :region, as: 'region' property :self_link, as: 'selfLink' + property :self_link_with_id, as: 'selfLinkWithId' property :start_time, as: 'startTime' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -1121,6 +1138,7 @@ module Google property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation + collection :custom_certificate_authority_roots, as: 'customCertificateAuthorityRoots' property :description, as: 'description' property :descriptor_url, as: 'descriptorUrl' property :id, :numeric_string => true, as: 'id' diff --git a/generated/google/apis/deploymentmanager_alpha/service.rb b/generated/google/apis/deploymentmanager_alpha/service.rb index e99b38723..6c295e933 100644 --- a/generated/google/apis/deploymentmanager_alpha/service.rb +++ b/generated/google/apis/deploymentmanager_alpha/service.rb @@ -167,36 +167,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -216,7 +219,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/compositeTypes', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse @@ -225,13 +228,14 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Updates a composite type. This method supports patch semantics. + # Patches a composite type. # @param [String] project # The project ID for this request. # @param [String] composite_type @@ -429,6 +433,8 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -448,12 +454,13 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_deployment_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def get_deployment_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -471,8 +478,8 @@ module Google # If set to true, creates a deployment and creates "shell" resources but does # not actually instantiate these resources. This allows you to preview what your # deployment looks like. After previewing a deployment, you can deploy your - # resources by making a request with the update() method or you can use the - # cancelPreview() method to cancel the preview altogether. Note that the + # resources by making a request with the `update()` method or you can use the ` + # cancelPreview()` method to cancel the preview altogether. Note that the # deployment will still exist after you cancel the preview and you must # separately delete this deployment if you want to remove it. # @param [String] fields @@ -516,36 +523,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -565,7 +575,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/deployments', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse @@ -574,14 +584,15 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Updates a deployment and all of the resources described by the deployment - # manifest. This method supports patch semantics. + # Patches a deployment and all of the resources described by the deployment + # manifest. # @param [String] project # The project ID for this request. # @param [String] deployment @@ -596,11 +607,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -772,11 +784,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -861,36 +874,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -910,7 +926,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse @@ -920,6 +936,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -969,36 +986,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1018,7 +1038,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/operations', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse @@ -1027,6 +1047,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1081,36 +1102,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1130,7 +1154,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse @@ -1140,6 +1164,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1300,36 +1325,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1349,7 +1377,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/typeProviders', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse @@ -1358,6 +1386,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? @@ -1373,36 +1402,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1422,7 +1454,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse @@ -1432,13 +1464,14 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end - # Updates a type provider. This method supports patch semantics. + # Patches a type provider. # @param [String] project # The project ID for this request. # @param [String] type_provider @@ -1516,42 +1549,6 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a type and all of the resources in the type. - # @param [String] project - # The project ID for this request. - # @param [String] type - # The name of the type for this request. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DeploymentmanagerAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_type(project, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/types/{type}', options) - command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation - command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['type'] = type unless type.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Gets information about a specific type. # @param [String] project # The project ID for this request. @@ -1588,42 +1585,6 @@ module Google execute_or_queue_command(command, &block) end - # Creates a type. - # @param [String] project - # The project ID for this request. - # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DeploymentmanagerAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_type(project, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/types', options) - command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation - command.request_object = type_object - command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation - command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation - command.params['project'] = project unless project.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Lists all resource types for Deployment Manager. # @param [String] project # The project ID for this request. @@ -1631,36 +1592,39 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1680,7 +1644,7 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, '{project}/global/types', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypesListResponse @@ -1689,84 +1653,7 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a type. This method supports patch semantics. - # @param [String] project - # The project ID for this request. - # @param [String] type - # The name of the type for this request. - # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DeploymentmanagerAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_type(project, type, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/types/{type}', options) - command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation - command.request_object = type_object - command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation - command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['type'] = type unless type.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates a type. - # @param [String] project - # The project ID for this request. - # @param [String] type - # The name of the type for this request. - # @param [Google::Apis::DeploymentmanagerAlpha::Type] type_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DeploymentmanagerAlpha::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DeploymentmanagerAlpha::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_type(project, type, type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/types/{type}', options) - command.request_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation - command.request_object = type_object - command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation - command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation - command.params['project'] = project unless project.nil? - command.params['type'] = type unless type.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 0595ec78e..c7b464739 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20181207' + REVISION = '20200512' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index 7d227190b..71a2638ce 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -31,14 +31,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -73,9 +73,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -85,6 +85,12 @@ module Google # @return [Array] attr_accessor :exempted_members + # + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -97,6 +103,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -124,9 +131,26 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DeploymentmanagerV2::Expr] attr_accessor :condition @@ -138,13 +162,29 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the users - # of that domain. For example, `google.com` or `example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For example, ` + # alice@example.com?uid=123456789012345678901`. If the user is recovered, this + # value reverts to `user:`emailid`` and the recovered user retains the role in + # the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid= + # 123456789012345678901`. If the service account is undeleted, this value + # reverts to `serviceAccount:`emailid`` and the undeleted service account + # retains the role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -192,12 +232,7 @@ module Google # @return [String] attr_accessor :sys - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. + # The objects of the condition. # Corresponds to the JSON property `values` # @return [Array] attr_accessor :values @@ -212,7 +247,6 @@ module Google @op = args[:op] if args.key?(:op) @svc = args[:svc] if args.key?(:svc) @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) @values = args[:values] if args.key?(:values) end end @@ -245,14 +279,14 @@ module Google # @return [String] attr_accessor :description - # Provides a fingerprint to use in requests to modify a deployment, such as - # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly - # generated value that must be provided with update(), stop(), and cancelPreview( - # ) requests to perform optimistic locking. This ensures optimistic concurrency - # so that only one request happens at a time. + # Provides a fingerprint to use in requests to modify a deployment, such as ` + # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided with `update()`, `stop()`, and ` + # cancelPreview()` requests to perform optimistic locking. This ensures + # optimistic concurrency so that only one request happens at a time. # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify data. To get the latest fingerprint value, perform a - # get() request to a deployment. + # every request to modify data. To get the latest fingerprint value, perform a ` + # get()` request to a deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -270,34 +304,45 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels # Output only. URL of the manifest representing the last manifest that was - # successfully deployed. + # successfully deployed. If no manifest has been successfully deployed, this + # field will be absent. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, # and all following characters must be a dash, lowercase letter, or digit, # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2::Operation] attr_accessor :operation @@ -380,9 +425,9 @@ module Google # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 - # characters long and must conform to the following regular expression: [a-z]([- - # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and - # must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -434,15 +479,15 @@ module Google class DeploymentsCancelPreviewRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a - # randomly generated value that must be provided in cancelPreview() requests to - # perform optimistic locking. This ensures optimistic concurrency so that the + # Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided in `cancelPreview()` requests + # to perform optimistic locking. This ensures optimistic concurrency so that the # deployment does not have conflicting requests (e.g. if someone attempts to # make a new update request while another user attempts to cancel a preview, # this would prevent one of the requests). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -488,15 +533,15 @@ module Google class DeploymentsStopRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for stop() requests. A fingerprint is a randomly - # generated value that must be provided in stop() requests to perform optimistic - # locking. This ensures optimistic concurrency so that the deployment does not - # have conflicting requests (e.g. if someone attempts to make a new update - # request while another user attempts to stop an ongoing update request, this - # would prevent a collision). + # Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly + # generated value that must be provided in `stop()` requests to perform + # optimistic locking. This ensures optimistic concurrency so that the deployment + # does not have conflicting requests (e.g. if someone attempts to make a new + # update request while another user attempts to stop an ongoing update request, + # this would prevent a collision). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -512,33 +557,48 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Textual representation of an expression in Common Expression Language syntax. - # The application context of the containing message determines which well-known - # feature set of CEL is supported. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing its - # purpose. This can be used e.g. in UIs which allow to enter the expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -573,23 +633,36 @@ module Google # @return [String] attr_accessor :etag - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DeploymentmanagerV2::Policy] attr_accessor :policy @@ -652,10 +725,8 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` # Corresponds to the JSON property `counter` # @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions] attr_accessor :counter @@ -714,13 +785,16 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` class LogConfigCounterOptions include Google::Apis::Core::Hashable + # Custom fields. + # Corresponds to the JSON property `customFields` + # @return [Array] + attr_accessor :custom_fields + # The field value to attribute. # Corresponds to the JSON property `field` # @return [String] @@ -737,21 +811,45 @@ module Google # Update properties of this object def update!(**args) + @custom_fields = args[:custom_fields] if args.key?(:custom_fields) @field = args[:field] if args.key?(:field) @metric = args[:metric] if args.key?(:metric) end end + # Custom fields. These can be used to create a counter with arbitrary field/ + # value pairs. See: go/rpcsp-custom-fields. + class LogConfigCounterOptionsCustomField + include Google::Apis::Core::Hashable + + # Name is the field name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value is the field value. It is important that in contrast to the + # CounterOptions.field, the value here is a constant that is not derived from + # the IAMContext. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Write a Data Access (Gin) log class LogConfigDataAccessOptions include Google::Apis::Core::Hashable - # Whether Gin logging should happen in a fail-closed manner at the caller. This - # is relevant only in the LocalIAM implementation, for now. - # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while - # work is being done to satisfy the requirements of go/345. Currently, setting - # LOG_FAIL_CLOSED mode will have no effect, but still exists because there is - # active work being done to support it (b/115874152). + # # Corresponds to the JSON property `logMode` # @return [String] attr_accessor :log_mode @@ -855,11 +953,21 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -893,19 +1001,19 @@ module Google attr_accessor :error # [Output Only] If the operation fails, this field contains the HTTP error - # message that was returned, such as NOT FOUND. + # message that was returned, such as `NOT FOUND`. # Corresponds to the JSON property `httpErrorMessage` # @return [String] attr_accessor :http_error_message # [Output Only] If the operation fails, this field contains the HTTP error - # status code that was returned. For example, a 404 means the resource was not + # status code that was returned. For example, a `404` means the resource was not # found. # Corresponds to the JSON property `httpErrorStatusCode` # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -917,19 +1025,19 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always `compute#operation` for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The type of operation, such as insert, update, or delete, and so - # on. + # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, + # and so on. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -943,9 +1051,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -961,8 +1067,8 @@ module Google # @return [String] attr_accessor :start_time - # [Output Only] The status of the operation, which can be one of the following: - # PENDING, RUNNING, or DONE. + # [Output Only] The status of the operation, which can be one of the following: ` + # PENDING`, `RUNNING`, or `DONE`. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -986,7 +1092,8 @@ module Google # @return [String] attr_accessor :target_link - # [Output Only] User who requested the operation, for example: user@example.com. + # [Output Only] User who requested the operation, for example: `user@example.com` + # . # Corresponds to the JSON property `user` # @return [String] attr_accessor :user @@ -997,9 +1104,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1178,23 +1284,36 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1203,8 +1322,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. `bindings` with no members will - # result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -1216,8 +1336,10 @@ module Google # returned in the response to `getIamPolicy`, and systems are expected to put # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1240,7 +1362,24 @@ module Google # @return [Array] attr_accessor :rules - # Deprecated. + # Specifies the format of the policy. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are + # rejected. + # Any operation that affects conditional role bindings must specify version `3`. + # This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding * Adding a + # conditional role binding to a policy * Changing a conditional role binding in + # a policy * Removing any role binding, with or without a condition, from a + # policy that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # To learn which resources support conditions in their IAM policies, see the [ + # IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1302,8 +1441,8 @@ module Google # @return [String] attr_accessor :properties - # Output only. The type of the resource, for example compute.v1.instance, or - # cloudfunctions.v1beta1.function. + # Output only. The type of the resource, for example `compute.v1.instance`, or ` + # cloudfunctions.v1beta1.function`. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1454,7 +1593,7 @@ module Google # @return [String] attr_accessor :final_properties - # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent @@ -1787,11 +1926,21 @@ module Google # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2::Operation] attr_accessor :operation diff --git a/generated/google/apis/deploymentmanager_v2/representations.rb b/generated/google/apis/deploymentmanager_v2/representations.rb index 514d235bf..2d395120e 100644 --- a/generated/google/apis/deploymentmanager_v2/representations.rb +++ b/generated/google/apis/deploymentmanager_v2/representations.rb @@ -136,6 +136,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogConfigCounterOptionsCustomField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogConfigDataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -306,6 +312,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -334,7 +341,6 @@ module Google property :op, as: 'op' property :svc, as: 'svc' property :sys, as: 'sys' - property :value, as: 'value' collection :values, as: 'values' end end @@ -470,11 +476,21 @@ module Google class LogConfigCounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :custom_fields, as: 'customFields', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptionsCustomField::Representation + property :field, as: 'field' property :metric, as: 'metric' end end + class LogConfigCounterOptionsCustomField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class LogConfigDataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index 383434592..f336f6764 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -213,8 +213,8 @@ module Google # If set to true, creates a deployment and creates "shell" resources but does # not actually instantiate these resources. This allows you to preview what your # deployment looks like. After previewing a deployment, you can deploy your - # resources by making a request with the update() method or you can use the - # cancelPreview() method to cancel the preview altogether. Note that the + # resources by making a request with the `update()` method or you can use the ` + # cancelPreview()` method to cancel the preview altogether. Note that the # deployment will still exist after you cancel the preview and you must # separately delete this deployment if you want to remove it. # @param [String] fields @@ -258,36 +258,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -322,8 +322,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a deployment and all of the resources described by the deployment - # manifest. This method supports patch semantics. + # Patches a deployment and all of the resources described by the deployment + # manifest. # @param [String] project # The project ID for this request. # @param [String] deployment @@ -338,11 +338,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -514,11 +515,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -603,36 +605,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -711,36 +713,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -823,36 +825,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -895,36 +897,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index b987e3e12..35cad9acf 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20181207' + REVISION = '20200512' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2beta/classes.rb b/generated/google/apis/deploymentmanager_v2beta/classes.rb index ac88e1e8f..c5e7142e2 100644 --- a/generated/google/apis/deploymentmanager_v2beta/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta/classes.rb @@ -56,14 +56,14 @@ module Google # AuditLogConfig are exempted. # Example Policy with multiple AuditConfigs: # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` " + # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # fooservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `, - # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] ` - # ] ` - # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail. - # com from DATA_WRITE logging. + # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", + # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" + # ] ` ] ` ] ` + # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ + # example.com from DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -98,9 +98,9 @@ module Google # Provides the configuration for logging a type of permissions. Example: # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail. - # com from DATA_READ logging. + # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ + # example.com from DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable @@ -110,6 +110,12 @@ module Google # @return [Array] attr_accessor :exempted_members + # + # Corresponds to the JSON property `ignoreChildExemptions` + # @return [Boolean] + attr_accessor :ignore_child_exemptions + alias_method :ignore_child_exemptions?, :ignore_child_exemptions + # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -122,6 +128,7 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end @@ -212,9 +219,26 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DeploymentmanagerV2beta::Expr] attr_accessor :condition @@ -226,13 +250,29 @@ module Google # * `allAuthenticatedUsers`: A special identifier that represents anyone who is # authenticated with a Google account or a service account. # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@gmail.com` . + # For example, `alice@example.com` . # * `serviceAccount:`emailid``: An email address that represents a service # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. For # example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the users - # of that domain. For example, `google.com` or `example.com`. + # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a user that has been recently deleted. For example, ` + # alice@example.com?uid=123456789012345678901`. If the user is recovered, this + # value reverts to `user:`emailid`` and the recovered user retains the role in + # the binding. + # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus + # unique identifier) representing a service account that has been recently + # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid= + # 123456789012345678901`. If the service account is undeleted, this value + # reverts to `serviceAccount:`emailid`` and the undeleted service account + # retains the role in the binding. + # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -303,24 +343,34 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels - # Name of the composite type, must follow the expression: [a-z]([-a-z0-9_.]`0,61` - # [a-z0-9])?. + # Name of the composite type, must follow the expression: `[a-z]([-a-z0-9_.]`0, + # 61`[a-z0-9])?`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -434,12 +484,7 @@ module Google # @return [String] attr_accessor :sys - # DEPRECATED. Use 'values' instead. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - # The objects of the condition. This is mutually exclusive with 'value'. + # The objects of the condition. # Corresponds to the JSON property `values` # @return [Array] attr_accessor :values @@ -454,7 +499,6 @@ module Google @op = args[:op] if args.key?(:op) @svc = args[:svc] if args.key?(:svc) @sys = args[:sys] if args.key?(:sys) - @value = args[:value] if args.key?(:value) @values = args[:values] if args.key?(:values) end end @@ -520,14 +564,14 @@ module Google # @return [String] attr_accessor :description - # Provides a fingerprint to use in requests to modify a deployment, such as - # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly - # generated value that must be provided with update(), stop(), and cancelPreview( - # ) requests to perform optimistic locking. This ensures optimistic concurrency - # so that only one request happens at a time. + # Provides a fingerprint to use in requests to modify a deployment, such as ` + # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided with `update()`, `stop()`, and ` + # cancelPreview()` requests to perform optimistic locking. This ensures + # optimistic concurrency so that only one request happens at a time. # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify data. To get the latest fingerprint value, perform a - # get() request to a deployment. + # every request to modify data. To get the latest fingerprint value, perform a ` + # get()` request to a deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -545,34 +589,45 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels # Output only. URL of the manifest representing the last manifest that was - # successfully deployed. + # successfully deployed. If no manifest has been successfully deployed, this + # field will be absent. # Corresponds to the JSON property `manifest` # @return [String] attr_accessor :manifest # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, # and all following characters must be a dash, lowercase letter, or digit, # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -655,9 +710,9 @@ module Google # Output only. Map of labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 - # characters long and must conform to the following regular expression: [a-z]([- - # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and - # must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -709,15 +764,15 @@ module Google class DeploymentsCancelPreviewRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a - # randomly generated value that must be provided in cancelPreview() requests to - # perform optimistic locking. This ensures optimistic concurrency so that the + # Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a + # randomly generated value that must be provided in `cancelPreview()` requests + # to perform optimistic locking. This ensures optimistic concurrency so that the # deployment does not have conflicting requests (e.g. if someone attempts to # make a new update request while another user attempts to cancel a preview, # this would prevent one of the requests). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -763,15 +818,15 @@ module Google class DeploymentsStopRequest include Google::Apis::Core::Hashable - # Specifies a fingerprint for stop() requests. A fingerprint is a randomly - # generated value that must be provided in stop() requests to perform optimistic - # locking. This ensures optimistic concurrency so that the deployment does not - # have conflicting requests (e.g. if someone attempts to make a new update - # request while another user attempts to stop an ongoing update request, this - # would prevent a collision). + # Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly + # generated value that must be provided in `stop()` requests to perform + # optimistic locking. This ensures optimistic concurrency so that the deployment + # does not have conflicting requests (e.g. if someone attempts to make a new + # update request while another user attempts to stop an ongoing update request, + # this would prevent a collision). # The fingerprint is initially generated by Deployment Manager and changes after # every request to modify a deployment. To get the latest fingerprint value, - # perform a get() request on the deployment. + # perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -813,33 +868,48 @@ module Google end end - # Represents an expression text. Example: - # title: "User account presence" description: "Determines whether the request - # has a user account" expression: "size(request.user) > 0" + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. + # Example (Comparison): + # title: "Summary size limit" description: "Determines if a summary is less than + # 100 chars" expression: "document.summary.size() < 100" + # Example (Equality): + # title: "Requestor is owner" description: "Determines if requestor is the + # document owner" expression: "document.owner == request.auth.claims.email" + # Example (Logic): + # title: "Public documents" description: "Determine whether the document should + # be publicly visible" expression: "document.type != 'private' && document.type ! + # = 'internal'" + # Example (Data Manipulation): + # title: "Notification string" description: "Create a notification string with a + # timestamp." expression: "'New message received at ' + string(document. + # create_time)" + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service documentation + # for additional information. class Expr include Google::Apis::Core::Hashable - # An optional description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Textual representation of an expression in Common Expression Language syntax. - # The application context of the containing message determines which well-known - # feature set of CEL is supported. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # An optional string indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # An optional title for the expression, i.e. a short string describing its - # purpose. This can be used e.g. in UIs which allow to enter the expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -874,23 +944,36 @@ module Google # @return [String] attr_accessor :etag - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DeploymentmanagerV2beta::Policy] attr_accessor :policy @@ -991,10 +1074,8 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` # Corresponds to the JSON property `counter` # @return [Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptions] attr_accessor :counter @@ -1053,13 +1134,16 @@ module Google # a representation of IAMContext.principal even if a token or authority selector # is present; or - "" (empty string), resulting in a counter with no fields. # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/backend_debug_access_count `iam_principal=[value - # of IAMContext.principal]` - # At this time we do not support multiple field names (though this may be - # supported in the future). + # increment counter /iam/policy/debug_access_count `iam_principal=[value of + # IAMContext.principal]` class LogConfigCounterOptions include Google::Apis::Core::Hashable + # Custom fields. + # Corresponds to the JSON property `customFields` + # @return [Array] + attr_accessor :custom_fields + # The field value to attribute. # Corresponds to the JSON property `field` # @return [String] @@ -1076,21 +1160,45 @@ module Google # Update properties of this object def update!(**args) + @custom_fields = args[:custom_fields] if args.key?(:custom_fields) @field = args[:field] if args.key?(:field) @metric = args[:metric] if args.key?(:metric) end end + # Custom fields. These can be used to create a counter with arbitrary field/ + # value pairs. See: go/rpcsp-custom-fields. + class LogConfigCounterOptionsCustomField + include Google::Apis::Core::Hashable + + # Name is the field name. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Value is the field value. It is important that in contrast to the + # CounterOptions.field, the value here is a constant that is not derived from + # the IAMContext. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + end + end + # Write a Data Access (Gin) log class LogConfigDataAccessOptions include Google::Apis::Core::Hashable - # Whether Gin logging should happen in a fail-closed manner at the caller. This - # is relevant only in the LocalIAM implementation, for now. - # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while - # work is being done to satisfy the requirements of go/345. Currently, setting - # LOG_FAIL_CLOSED mode will have no effect, but still exists because there is - # active work being done to support it (b/115874152). + # # Corresponds to the JSON property `logMode` # @return [String] attr_accessor :log_mode @@ -1194,11 +1302,21 @@ module Google end end - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) class Operation include Google::Apis::Core::Hashable @@ -1232,19 +1350,19 @@ module Google attr_accessor :error # [Output Only] If the operation fails, this field contains the HTTP error - # message that was returned, such as NOT FOUND. + # message that was returned, such as `NOT FOUND`. # Corresponds to the JSON property `httpErrorMessage` # @return [String] attr_accessor :http_error_message # [Output Only] If the operation fails, this field contains the HTTP error - # status code that was returned. For example, a 404 means the resource was not + # status code that was returned. For example, a `404` means the resource was not # found. # Corresponds to the JSON property `httpErrorStatusCode` # @return [Fixnum] attr_accessor :http_error_status_code - # [Output Only] The unique identifier for the resource. This identifier is + # [Output Only] The unique identifier for the operation. This identifier is # defined by the server. # Corresponds to the JSON property `id` # @return [Fixnum] @@ -1256,19 +1374,19 @@ module Google # @return [String] attr_accessor :insert_time - # [Output Only] Type of the resource. Always compute#operation for Operation + # [Output Only] Type of the resource. Always `compute#operation` for Operation # resources. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind - # [Output Only] Name of the resource. + # [Output Only] Name of the operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # [Output Only] The type of operation, such as insert, update, or delete, and so - # on. + # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, + # and so on. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -1282,9 +1400,7 @@ module Google attr_accessor :progress # [Output Only] The URL of the region where the operation resides. Only - # available when performing regional operations. You must specify this field as - # part of the HTTP request URL. It is not settable as a field in the request - # body. + # applicable when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -1300,8 +1416,8 @@ module Google # @return [String] attr_accessor :start_time - # [Output Only] The status of the operation, which can be one of the following: - # PENDING, RUNNING, or DONE. + # [Output Only] The status of the operation, which can be one of the following: ` + # PENDING`, `RUNNING`, or `DONE`. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -1325,7 +1441,8 @@ module Google # @return [String] attr_accessor :target_link - # [Output Only] User who requested the operation, for example: user@example.com. + # [Output Only] User who requested the operation, for example: `user@example.com` + # . # Corresponds to the JSON property `user` # @return [String] attr_accessor :user @@ -1336,9 +1453,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] The URL of the zone where the operation resides. Only available - # when performing per-zone operations. You must specify this field as part of - # the HTTP request URL. It is not settable as a field in the request body. + # [Output Only] The URL of the zone where the operation resides. Only applicable + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -1560,23 +1676,36 @@ module Google end end - # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` - # members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. - # **JSON Example** - # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", - # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: - # sean@example.com"] ` ] ` - # **YAML Example** + # An Identity and Access Management (IAM) policy, which specifies access + # controls for Google Cloud resources. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` + # members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions; each `role` can be an IAM predefined role or a user-created + # custom role. + # For some types of Google Cloud resources, a `binding` can also specify a ` + # condition`, which is a logical expression that allows access to a resource + # only if the expression evaluates to `true`. A condition can add constraints + # based on attributes of the request, the resource, or both. To learn which + # resources support conditions in their IAM policies, see the [IAM documentation] + # (https://cloud.google.com/iam/help/conditions/resource-policies). + # **JSON example:** + # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": + # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " + # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " + # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" + # ], "condition": ` "title": "expirable access", "description": "Does not grant + # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: + # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` + # **YAML example:** # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner - members: - user:sean@example.com role: roles/viewer - # For a description of IAM and its features, see the [IAM developer's guide]( - # https://cloud.google.com/iam/docs). + # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. + # com role: roles/resourcemanager.organizationViewer condition: title: expirable + # access description: Does not grant access after Sep 2020 expression: request. + # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 + # For a description of IAM and its features, see the [IAM documentation](https:// + # cloud.google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1585,8 +1714,9 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. `bindings` with no members will - # result in an error. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -1598,8 +1728,10 @@ module Google # returned in the response to `getIamPolicy`, and systems are expected to put # that etag in the request to `setIamPolicy` to ensure that their change will be # applied to the same version of the policy. - # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten blindly. + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1622,7 +1754,24 @@ module Google # @return [Array] attr_accessor :rules - # Deprecated. + # Specifies the format of the policy. + # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are + # rejected. + # Any operation that affects conditional role bindings must specify version `3`. + # This requirement applies to the following operations: + # * Getting a policy that includes a conditional role binding * Adding a + # conditional role binding to a policy * Changing a conditional role binding in + # a policy * Removing any role binding, with or without a condition, from a + # policy that includes conditions + # **Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. + # If a policy does not include any conditions, operations on that policy may + # specify any valid version or leave the field unset. + # To learn which resources support conditions in their IAM policies, see the [ + # IAM documentation](https://cloud.google.com/iam/help/conditions/resource- + # policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1729,8 +1878,8 @@ module Google # @return [String] attr_accessor :properties - # Output only. The type of the resource, for example compute.v1.instance, or - # cloudfunctions.v1beta1.function. + # Output only. The type of the resource, for example `compute.v1.instance`, or ` + # cloudfunctions.v1beta1.function`. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1881,7 +2030,7 @@ module Google # @return [String] attr_accessor :final_properties - # Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. + # Output only. The intent of the resource: `PREVIEW`, `UPDATE`, or `CANCEL`. # Corresponds to the JSON property `intent` # @return [String] attr_accessor :intent @@ -2285,9 +2434,9 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2297,11 +2446,21 @@ module Google # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -2344,7 +2503,7 @@ module Google # @return [String] attr_accessor :documentation_link - # Output only. Type of the output. Always deploymentManager#TypeInfo for + # Output only. Type of the output. Always `deploymentManager#TypeInfo` for # TypeInfo. # Corresponds to the JSON property `kind` # @return [String] @@ -2454,6 +2613,16 @@ module Google # @return [Google::Apis::DeploymentmanagerV2beta::Credential] attr_accessor :credential + # List of up to 2 custom certificate authority roots to use for TLS + # authentication when making calls on behalf of this type provider. If set, TLS + # authentication will exclusively use these roots instead of relying on publicly + # trusted certificate authorities when validating TLS certificate authenticity. + # The certificates must be in base64-encoded PEM format. The maximum size of + # each certificate must not exceed 10KB. + # Corresponds to the JSON property `customCertificateAuthorityRoots` + # @return [Array] + attr_accessor :custom_certificate_authority_roots + # An optional textual description of the resource; provided by the client when # the resource is created. # Corresponds to the JSON property `description` @@ -2477,28 +2646,38 @@ module Google # Map of labels; provided by the client when the resource is created or updated. # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label - # values must be between 0 and 63 characters long and must conform to the - # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? + # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` + # Label values must be between 0 and 63 characters long and must conform to the + # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels # Name of the resource; provided by the client when the resource is created. The # name must be 1-63 characters long, and comply with RFC1035. Specifically, the - # name must be 1-63 characters long and match the regular expression [a-z]([-a- - # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, + # name must be 1-63 characters long and match the regular expression `[a-z]([-a- + # z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, # and all following characters must be a dash, lowercase letter, or digit, # except the last character, which cannot be a dash. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An Operation resource, used to manage asynchronous API requests. (== - # resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) - # (== resource_for v1.regionOperations ==) (== resource_for beta. - # regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for - # beta.zoneOperations ==) + # Represents an Operation resource. + # Google Compute Engine has three Operation resources: + # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ + # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ + # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) + # You can use an operation resource to manage asynchronous API requests. For + # more information, read Handling API responses. + # Operations can be global, regional or zonal. + # - For global operations, use the `globalOperations` resource. + # - For regional operations, use the `regionOperations` resource. + # - For zonal operations, use the `zonalOperations` resource. + # For more information, read Global, Regional, and Zonal Resources. (== + # resource_for `$api_version`.globalOperations ==) (== resource_for `$ + # api_version`.regionOperations ==) (== resource_for `$api_version`. + # zoneOperations ==) # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -2521,6 +2700,7 @@ module Google def update!(**args) @collection_overrides = args[:collection_overrides] if args.key?(:collection_overrides) @credential = args[:credential] if args.key?(:credential) + @custom_certificate_authority_roots = args[:custom_certificate_authority_roots] if args.key?(:custom_certificate_authority_roots) @description = args[:description] if args.key?(:description) @descriptor_url = args[:descriptor_url] if args.key?(:descriptor_url) @id = args[:id] if args.key?(:id) diff --git a/generated/google/apis/deploymentmanager_v2beta/representations.rb b/generated/google/apis/deploymentmanager_v2beta/representations.rb index 419f7fbb3..ce16b5d9d 100644 --- a/generated/google/apis/deploymentmanager_v2beta/representations.rb +++ b/generated/google/apis/deploymentmanager_v2beta/representations.rb @@ -196,6 +196,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class LogConfigCounterOptionsCustomField + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LogConfigDataAccessOptions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -447,6 +453,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' + property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end @@ -540,7 +547,6 @@ module Google property :op, as: 'op' property :svc, as: 'svc' property :sys, as: 'sys' - property :value, as: 'value' collection :values, as: 'values' end end @@ -705,11 +711,21 @@ module Google class LogConfigCounterOptions # @private class Representation < Google::Apis::Core::JsonRepresentation + collection :custom_fields, as: 'customFields', class: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptionsCustomField::Representation + property :field, as: 'field' property :metric, as: 'metric' end end + class LogConfigCounterOptionsCustomField + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :value, as: 'value' + end + end + class LogConfigDataAccessOptions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1076,6 +1092,7 @@ module Google property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerV2beta::Credential, decorator: Google::Apis::DeploymentmanagerV2beta::Credential::Representation + collection :custom_certificate_authority_roots, as: 'customCertificateAuthorityRoots' property :description, as: 'description' property :descriptor_url, as: 'descriptorUrl' property :id, :numeric_string => true, as: 'id' diff --git a/generated/google/apis/deploymentmanager_v2beta/service.rb b/generated/google/apis/deploymentmanager_v2beta/service.rb index 15e457307..71665b67f 100644 --- a/generated/google/apis/deploymentmanager_v2beta/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta/service.rb @@ -167,36 +167,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -231,7 +231,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates a composite type. This method supports patch semantics. + # Patches a composite type. # @param [String] project # The project ID for this request. # @param [String] composite_type @@ -471,8 +471,8 @@ module Google # If set to true, creates a deployment and creates "shell" resources but does # not actually instantiate these resources. This allows you to preview what your # deployment looks like. After previewing a deployment, you can deploy your - # resources by making a request with the update() method or you can use the - # cancelPreview() method to cancel the preview altogether. Note that the + # resources by making a request with the `update()` method or you can use the ` + # cancelPreview()` method to cancel the preview altogether. Note that the # deployment will still exist after you cancel the preview and you must # separately delete this deployment if you want to remove it. # @param [String] fields @@ -516,36 +516,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -580,8 +580,8 @@ module Google execute_or_queue_command(command, &block) end - # Updates a deployment and all of the resources described by the deployment - # manifest. This method supports patch semantics. + # Patches a deployment and all of the resources described by the deployment + # manifest. # @param [String] project # The project ID for this request. # @param [String] deployment @@ -596,11 +596,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -772,11 +773,12 @@ module Google # resources but does not actually alter or instantiate these resources. This # allows you to preview what your deployment will look like. You can use this # intent to preview how an update would affect your deployment. You must provide - # a target.config with a configuration if this is set to true. After previewing - # a deployment, you can deploy your resources by making a request with the - # update() or you can cancelPreview() to remove the preview altogether. Note - # that the deployment will still exist after you cancel the preview and you must - # separately delete this deployment if you want to remove it. + # a `target.config` with a configuration if this is set to true. After + # previewing a deployment, you can deploy your resources by making a request + # with the `update()` or you can `cancelPreview()` to remove the preview + # altogether. Note that the deployment will still exist after you cancel the + # preview and you must separately delete this deployment if you want to remove + # it. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -861,36 +863,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -969,36 +971,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1081,36 +1083,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1300,36 +1302,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1373,36 +1375,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1438,7 +1440,7 @@ module Google execute_or_queue_command(command, &block) end - # Updates a type provider. This method supports patch semantics. + # Patches a type provider. # @param [String] project # The project ID for this request. # @param [String] type_provider @@ -1523,36 +1525,36 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either =, !=, >, or <. + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. # For example, if you are filtering Compute Engine instances, you can exclude - # instances named example-instance by specifying name != example-instance. - # You can also filter nested fields. For example, you could specify scheduling. - # automaticRestart = false to include instances only if they are not scheduled + # instances named `example-instance` by specifying `name != example-instance`. + # You can also filter nested fields. For example, you could specify `scheduling. + # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based # on resource labels. # To filter on multiple expressions, provide each separate expression within - # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = " - # Intel Skylake"). By default, each expression is an AND expression. However, - # you can include AND and OR expressions explicitly. For example, (cpuPlatform = - # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling. - # automaticRestart = true). + # parentheses. For example: ``` (scheduling.automaticRestart = true) ( + # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + # expression. However, you can include `AND` and `OR` expressions explicitly. + # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + # Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number - # of available results is larger than maxResults, Compute Engine returns a - # nextPageToken that can be used to get the next page of results in subsequent - # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + # of available results is larger than `maxResults`, Compute Engine returns a ` + # nextPageToken` that can be used to get the next page of results in subsequent + # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in # alphanumerical order based on the resource name. # You can also sort results in descending order based on the creation timestamp - # using orderBy="creationTimestamp desc". This sorts results based on the - # creationTimestamp field in reverse chronological order (newest result first). + # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` + # creationTimestamp` field in reverse chronological order (newest result first). # Use this to sort resources like operations so that the newest operation is # returned first. - # Currently, only sorting by name or creationTimestamp desc is supported. + # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token - # Specifies a page token to use. Set pageToken to the nextPageToken returned by - # a previous list request to get the next page of results. + # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned + # by a previous list request to get the next page of results. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index ebb5ff4a0..60d2ddbf2 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1 VERSION = 'V1' - REVISION = '20191205' + REVISION = '20200515' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb index 0e739cc02..7b8ec8f4e 100644 --- a/generated/google/apis/dns_v1/classes.rb +++ b/generated/google/apis/dns_v1/classes.rb @@ -22,32 +22,26 @@ module Google module Apis module DnsV1 - # A Change represents a set of ResourceRecordSet additions and deletions applied - # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are - # modified by creating a new Change element in the Changes collection. In turn - # the Changes collection also records the past modifications to the - # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is - # the sum effect of applying all Change elements in the Changes collection in - # sequence. + # class Change include Google::Apis::Core::Hashable - # Which ResourceRecordSets to add? + # # Corresponds to the JSON property `additions` # @return [Array] attr_accessor :additions - # Which ResourceRecordSets to remove? Must match existing data exactly. + # # Corresponds to the JSON property `deletions` # @return [Array] attr_accessor :deletions - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # If the DNS queries for the zone will be served. + # # Corresponds to the JSON property `isServing` # @return [Boolean] attr_accessor :is_serving @@ -58,15 +52,12 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server (output only). This is - # in RFC3339 text format. + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation (output only). A status of "done" means that the - # request to update the authoritative servers has been sent, but the servers - # might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -87,17 +78,16 @@ module Google end end - # The response to a request to enumerate Changes to a ResourceRecordSets - # collection. + # class ListChangesResponse include Google::Apis::Core::Hashable - # The requested changes. + # # Corresponds to the JSON property `changes` # @return [Array] attr_accessor :changes - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -107,14 +97,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -132,59 +115,47 @@ module Google end end - # A DNSSEC key pair. + # class DnsKey include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after - # creation time. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # The time that this resource was created in the control plane. This is in - # RFC3339 text format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the resource's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey. - # These digests are needed to construct a DS record that points at this DNS key. - # Output only. + # # Corresponds to the JSON property `digests` # @return [Array] attr_accessor :digests - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Active keys will be used to sign subsequent changes to the ManagedZone. - # Inactive keys will still be present as DNSKEY Resource Records for the use of - # resolvers validating existing signatures. + # # Corresponds to the JSON property `isActive` # @return [Boolean] attr_accessor :is_active alias_method :is_active?, :is_active - # Length of the key in bits. Specified at creation time then immutable. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # The key tag is a non-cryptographic hash of the a DNSKEY resource record - # associated with this DnsKey. The key tag can be used to identify a DNSKEY more - # quickly (but it is not a unique identifier). In particular, the key tag is - # used in a parent zone's DS record to point at the DNSKEY in this child - # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm - # to calculate it is specified in RFC4034 Appendix B. Output only. + # # Corresponds to the JSON property `keyTag` # @return [Fixnum] attr_accessor :key_tag @@ -194,16 +165,12 @@ module Google # @return [String] attr_accessor :kind - # Base64 encoded public half of this key. Output only. + # # Corresponds to the JSON property `publicKey` # @return [String] attr_accessor :public_key - # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the - # Secure Entry Point flag set and, when active, will be used to sign only - # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag - # will be cleared and this key will be used to sign only resource record sets of - # other types. Immutable after creation time. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -232,13 +199,12 @@ module Google class DnsKeyDigest include Google::Apis::Core::Hashable - # The base-16 encoded bytes of this digest. Suitable for use in a DS resource - # record. + # # Corresponds to the JSON property `digest` # @return [String] attr_accessor :digest - # Specifies the algorithm used to calculate this digest. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -254,26 +220,21 @@ module Google end end - # Parameters for DnsKey key generation. Used for generating initial keys for a - # new ManagedZone and as default when adding a new DnsKey. + # class DnsKeySpec include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # Length of the keys in bits. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). - # Key signing keys have the Secure Entry Point flag set and, when active, will - # only be used to sign resource record sets of type DNSKEY. Zone signing keys do - # not have the Secure Entry Point flag set and will be used to sign all other - # types of resource record sets. + # # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type @@ -297,16 +258,16 @@ module Google end end - # The response to a request to enumerate DnsKeys in a ManagedZone. + # class DnsKeysListResponse include Google::Apis::Core::Hashable - # The requested resources. + # # Corresponds to the JSON property `dnsKeys` # @return [Array] attr_accessor :dns_keys - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -316,14 +277,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -341,42 +295,36 @@ module Google end end - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # class ManagedZone include Google::Apis::Core::Hashable - # The time that this resource was created on the server. This is in RFC3339 text - # format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the managed zone's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The DNS name of this managed zone, for instance "example.com.". + # # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name - # DNSSEC configuration. + # # Corresponds to the JSON property `dnssecConfig` # @return [Google::Apis::DnsV1::ManagedZoneDnsSecConfig] attr_accessor :dnssec_config - # The presence for this field indicates that outbound forwarding is enabled for - # this zone. The value of this field contains the set of destinations to forward - # to. + # # Corresponds to the JSON property `forwardingConfig` # @return [Google::Apis::DnsV1::ManagedZoneForwardingConfig] attr_accessor :forwarding_config - # Unique identifier for the resource; defined by the server (output only) + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -387,45 +335,42 @@ module Google # @return [String] attr_accessor :kind - # User labels. + # # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # User assigned name for this resource. Must be unique within the project. The - # name must be 1-63 characters long, must begin with a letter, end with a letter - # or digit, and only contain lowercase letters, digits or dashes. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet - # is a set of DNS name servers that all host the same ManagedZones. Most users - # will leave this field unset. + # # Corresponds to the JSON property `nameServerSet` # @return [String] attr_accessor :name_server_set - # Delegate your managed_zone to these virtual name servers; defined by the - # server (output only) + # # Corresponds to the JSON property `nameServers` # @return [Array] attr_accessor :name_servers - # The presence of this field indicates that DNS Peering is enabled for this zone. - # The value of this field contains the network to peer with. + # # Corresponds to the JSON property `peeringConfig` # @return [Google::Apis::DnsV1::ManagedZonePeeringConfig] attr_accessor :peering_config - # For privately visible zones, the set of Virtual Private Cloud resources that - # the zone is visible from. + # # Corresponds to the JSON property `privateVisibilityConfig` # @return [Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig] attr_accessor :private_visibility_config - # The zone's visibility: public zones are exposed to the Internet, while private - # zones are visible only to Virtual Private Cloud resources. + # + # Corresponds to the JSON property `reverseLookupConfig` + # @return [Google::Apis::DnsV1::ManagedZoneReverseLookupConfig] + attr_accessor :reverse_lookup_config + + # # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility @@ -449,6 +394,7 @@ module Google @name_servers = args[:name_servers] if args.key?(:name_servers) @peering_config = args[:peering_config] if args.key?(:peering_config) @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) + @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) @visibility = args[:visibility] if args.key?(:visibility) end end @@ -457,8 +403,7 @@ module Google class ManagedZoneDnsSecConfig include Google::Apis::Core::Hashable - # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `defaultKeySpecs` # @return [Array] attr_accessor :default_key_specs @@ -469,13 +414,12 @@ module Google # @return [String] attr_accessor :kind - # Specifies the mechanism for authenticated denial-of-existence responses. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `nonExistence` # @return [String] attr_accessor :non_existence - # Specifies whether DNSSEC is enabled, and what mode it is in. + # # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -503,8 +447,7 @@ module Google # @return [String] attr_accessor :kind - # List of target name servers to forward to. Cloud DNS will select the best - # available name server if more than one target is given. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -524,7 +467,12 @@ module Google class ManagedZoneForwardingConfigNameServerTarget include Google::Apis::Core::Hashable - # IPv4 address of a target name server. + # + # Corresponds to the JSON property `forwardingPath` + # @return [String] + attr_accessor :forwarding_path + + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -541,6 +489,7 @@ module Google # Update properties of this object def update!(**args) + @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) @kind = args[:kind] if args.key?(:kind) end @@ -550,7 +499,7 @@ module Google class ManagedZoneOperationsListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -560,20 +509,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The operation resources. + # # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -601,7 +542,7 @@ module Google # @return [String] attr_accessor :kind - # The network with which to peer. + # # Corresponds to the JSON property `targetNetwork` # @return [Google::Apis::DnsV1::ManagedZonePeeringConfigTargetNetwork] attr_accessor :target_network @@ -621,10 +562,7 @@ module Google class ManagedZonePeeringConfigTargetNetwork include Google::Apis::Core::Hashable - # The time at which the zone was deactivated, in RFC 3339 date-time format. An - # empty string indicates that the peering connection is active. The producer - # network can deactivate a zone. The zone is automatically deactivated if the - # producer network that the zone targeted is deleted. Output only. + # # Corresponds to the JSON property `deactivateTime` # @return [String] attr_accessor :deactivate_time @@ -635,9 +573,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to forward queries to. This should - # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/ - # global/networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -664,7 +600,7 @@ module Google # @return [String] attr_accessor :kind - # The list of VPC networks that can see this zone. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -690,9 +626,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -708,11 +642,31 @@ module Google end end + # + class ManagedZoneReverseLookupConfig + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneReverseLookupConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + # class ListManagedZonesResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -722,20 +676,12 @@ module Google # @return [String] attr_accessor :kind - # The managed zone resources. + # # Corresponds to the JSON property `managedZones` # @return [Array] attr_accessor :managed_zones - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -753,22 +699,16 @@ module Google end end - # An operation represents a successful mutation performed on a Cloud DNS - # resource. Operations provide: - An audit log of server resource mutations. - A - # way to recover/retry API calls in the case where the response is never - # received by the caller. Use the caller specified client_operation_id. + # class Operation include Google::Apis::Core::Hashable - # Only populated if the operation targeted a DnsKey (output only). + # # Corresponds to the JSON property `dnsKeyContext` # @return [Google::Apis::DnsV1::OperationDnsKeyContext] attr_accessor :dns_key_context - # Unique identifier for the resource. This is the client_operation_id if the - # client specified it when the mutation was initiated, otherwise, it is - # generated by the server. The name must be 1-63 characters long and match the - # regular expression [-a-z0-9]? (output only) + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -779,32 +719,27 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server. This is in RFC3339 - # text format (output only). + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation. Can be one of the following: "PENDING" or "DONE" ( - # output only). A status of "DONE" means that the request to update the - # authoritative servers has been sent, but the servers might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Type of the operation. Operations include insert, update, and delete (output - # only). + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # User who requested the operation, for example: user@example.com. cloud-dns- - # system for operations automatically done by the system. (output only) + # # Corresponds to the JSON property `user` # @return [String] attr_accessor :user - # Only populated if the operation targeted a ManagedZone (output only). + # # Corresponds to the JSON property `zoneContext` # @return [Google::Apis::DnsV1::OperationManagedZoneContext] attr_accessor :zone_context @@ -830,12 +765,12 @@ module Google class OperationDnsKeyContext include Google::Apis::Core::Hashable - # A DNSSEC key pair. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV1::DnsKey] attr_accessor :new_value - # A DNSSEC key pair. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV1::DnsKey] attr_accessor :old_value @@ -855,16 +790,12 @@ module Google class OperationManagedZoneContext include Google::Apis::Core::Hashable - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV1::ManagedZone] attr_accessor :new_value - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV1::ManagedZone] attr_accessor :old_value @@ -884,7 +815,7 @@ module Google class PoliciesListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -894,20 +825,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The policy resources. + # # Corresponds to the JSON property `policies` # @return [Array] attr_accessor :policies @@ -929,13 +852,12 @@ module Google class PoliciesPatchResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV1::Policy] attr_accessor :policy @@ -955,13 +877,12 @@ module Google class PoliciesUpdateResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV1::Policy] attr_accessor :policy @@ -977,40 +898,33 @@ module Google end end - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # class Policy include Google::Apis::Core::Hashable - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `alternativeNameServerConfig` # @return [Google::Apis::DnsV1::PolicyAlternativeNameServerConfig] attr_accessor :alternative_name_server_config - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the policy's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Allows networks bound to this policy to receive DNS queries sent by VMs or - # applications over VPN connections. When enabled, a virtual IP address will be - # allocated from each of the sub-networks that are bound to this policy. + # # Corresponds to the JSON property `enableInboundForwarding` # @return [Boolean] attr_accessor :enable_inbound_forwarding alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - # Controls whether logging is enabled for the networks bound to this policy. - # Defaults to no logging if not set. + # # Corresponds to the JSON property `enableLogging` # @return [Boolean] attr_accessor :enable_logging alias_method :enable_logging?, :enable_logging - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -1020,12 +934,12 @@ module Google # @return [String] attr_accessor :kind - # User assigned name for this policy. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # List of network names specifying networks to which this policy is applied. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -1057,9 +971,7 @@ module Google # @return [String] attr_accessor :kind - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -1079,7 +991,12 @@ module Google class PolicyAlternativeNameServerConfigTargetNameServer include Google::Apis::Core::Hashable - # IPv4 address to forward to. + # + # Corresponds to the JSON property `forwardingPath` + # @return [String] + attr_accessor :forwarding_path + + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -1096,6 +1013,7 @@ module Google # Update properties of this object def update!(**args) + @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) @kind = args[:kind] if args.key?(:kind) end @@ -1111,9 +1029,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -1129,13 +1045,11 @@ module Google end end - # A project resource. The project is a top level container for resources - # including Cloud DNS ManagedZones. Projects can be created only in the APIs - # console. + # class Project include Google::Apis::Core::Hashable - # User assigned unique identifier for the resource (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1146,13 +1060,12 @@ module Google # @return [String] attr_accessor :kind - # Unique numeric identifier for the resource; defined by the server (output only) - # . + # # Corresponds to the JSON property `number` # @return [Fixnum] attr_accessor :number - # Limits associated with a Project. + # # Corresponds to the JSON property `quota` # @return [Google::Apis::DnsV1::Quota] attr_accessor :quota @@ -1170,11 +1083,11 @@ module Google end end - # Limits associated with a Project. + # class Quota include Google::Apis::Core::Hashable - # Maximum allowed number of DnsKeys per ManagedZone. + # # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] attr_accessor :dns_keys_per_managed_zone @@ -1184,69 +1097,67 @@ module Google # @return [String] attr_accessor :kind - # Maximum allowed number of managed zones in the project. + # # Corresponds to the JSON property `managedZones` # @return [Fixnum] attr_accessor :managed_zones - # Maximum allowed number of managed zones which can be attached to a network. + # # Corresponds to the JSON property `managedZonesPerNetwork` # @return [Fixnum] attr_accessor :managed_zones_per_network - # Maximum allowed number of networks to which a privately scoped zone can be - # attached. + # # Corresponds to the JSON property `networksPerManagedZone` # @return [Fixnum] attr_accessor :networks_per_managed_zone - # Maximum allowed number of networks per policy. + # # Corresponds to the JSON property `networksPerPolicy` # @return [Fixnum] attr_accessor :networks_per_policy - # Maximum allowed number of policies per project. + # # Corresponds to the JSON property `policies` # @return [Fixnum] attr_accessor :policies - # Maximum allowed number of ResourceRecords per ResourceRecordSet. + # # Corresponds to the JSON property `resourceRecordsPerRrset` # @return [Fixnum] attr_accessor :resource_records_per_rrset - # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetAdditionsPerChange` # @return [Fixnum] attr_accessor :rrset_additions_per_change - # Maximum allowed number of ResourceRecordSets to delete per - # ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetDeletionsPerChange` # @return [Fixnum] attr_accessor :rrset_deletions_per_change - # Maximum allowed number of ResourceRecordSets per zone in the project. + # # Corresponds to the JSON property `rrsetsPerManagedZone` # @return [Fixnum] attr_accessor :rrsets_per_managed_zone - # Maximum allowed number of target name servers per managed forwarding zone. + # # Corresponds to the JSON property `targetNameServersPerManagedZone` # @return [Fixnum] attr_accessor :target_name_servers_per_managed_zone - # Maximum allowed number of alternative target name servers per policy. + # # Corresponds to the JSON property `targetNameServersPerPolicy` # @return [Fixnum] attr_accessor :target_name_servers_per_policy - # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. + # # Corresponds to the JSON property `totalRrdataSizePerChange` # @return [Fixnum] attr_accessor :total_rrdata_size_per_change - # DNSSEC algorithm and key length types that can be used for DnsKeys. + # # Corresponds to the JSON property `whitelistedKeySpecs` # @return [Array] attr_accessor :whitelisted_key_specs @@ -1275,7 +1186,7 @@ module Google end end - # A unit of data that will be returned by the DNS servers. + # class ResourceRecordSet include Google::Apis::Core::Hashable @@ -1285,29 +1196,27 @@ module Google # @return [String] attr_accessor :kind - # For example, www.example.com. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see - # examples. + # # Corresponds to the JSON property `rrdatas` # @return [Array] attr_accessor :rrdatas - # As defined in RFC 4034 (section 3.2). + # # Corresponds to the JSON property `signatureRrdatas` # @return [Array] attr_accessor :signature_rrdatas - # Number of seconds that this ResourceRecordSet can be cached by resolvers. + # # Corresponds to the JSON property `ttl` # @return [Fixnum] attr_accessor :ttl - # The identifier of a supported record type. See the list of Supported DNS - # record types. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1331,7 +1240,7 @@ module Google class ListResourceRecordSetsResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1::ResponseHeader] attr_accessor :header @@ -1341,20 +1250,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The resource record set resources. + # # Corresponds to the JSON property `rrsets` # @return [Array] attr_accessor :rrsets @@ -1372,13 +1273,11 @@ module Google end end - # Elements common to every response. + # class ResponseHeader include Google::Apis::Core::Hashable - # For mutating operation requests that completed successfully. This is the - # client_operation_id if the client specified it, otherwise it is generated by - # the server (output only). + # # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id diff --git a/generated/google/apis/dns_v1/representations.rb b/generated/google/apis/dns_v1/representations.rb index dccc5e24a..3641253b2 100644 --- a/generated/google/apis/dns_v1/representations.rb +++ b/generated/google/apis/dns_v1/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManagedZoneReverseLookupConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListManagedZonesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -303,6 +309,8 @@ module Google property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig::Representation + property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV1::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV1::ManagedZoneReverseLookupConfig::Representation + property :visibility, as: 'visibility' end end @@ -330,6 +338,7 @@ module Google class ManagedZoneForwardingConfigNameServerTarget # @private class Representation < Google::Apis::Core::JsonRepresentation + property :forwarding_path, as: 'forwardingPath' property :ipv4_address, as: 'ipv4Address' property :kind, as: 'kind' end @@ -382,6 +391,13 @@ module Google end end + class ManagedZoneReverseLookupConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + class ListManagedZonesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -490,6 +506,7 @@ module Google class PolicyAlternativeNameServerConfigTargetNameServer # @private class Representation < Google::Apis::Core::JsonRepresentation + property :forwarding_path, as: 'forwardingPath' property :ipv4_address, as: 'ipv4Address' property :kind, as: 'kind' end diff --git a/generated/google/apis/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index 6bc554b39..b8db05eea 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -51,16 +51,11 @@ module Google @batch_path = 'batch/dns/v1' end - # Atomically update the ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1::Change] change_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -95,18 +90,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Change. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] change_id - # The identifier of the requested change, from a previous - # ResourceRecordSetsChangeResponse. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -140,22 +128,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Changes to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported value is change sequence. # @param [String] sort_order - # Sorting order direction: 'ascending' or 'descending'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -191,21 +170,12 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing DnsKey. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] dns_key_id - # The identifier of the requested DnsKey. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -240,22 +210,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate DnsKeys to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -290,16 +250,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Operation. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [String] operation - # Identifies the operation addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -333,19 +288,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Operations for the given ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported values are START_TIME and ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -380,13 +328,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -420,15 +365,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -459,15 +399,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -500,17 +435,11 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ManagedZones that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] dns_name - # Restricts the list to return only zones with this domain name. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -544,16 +473,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -588,16 +512,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -632,13 +551,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new Policy + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -672,15 +588,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created Policy. Will fail if the policy is still being - # referenced by a network. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -711,14 +622,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -751,15 +658,10 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate all Policies associated with a project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -792,15 +694,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -835,15 +733,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -878,12 +772,9 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -915,24 +806,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ResourceRecordSets that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] name - # Restricts the list to return only records with this fully qualified domain - # name. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] type - # Restricts the list to return only records of this type. If present, the "name" - # parameter must also be present. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index 1c232865b..82aae67dd 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV1beta2 VERSION = 'V1beta2' - REVISION = '20191029' + REVISION = '20200515' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb index dca031ec3..a6064a273 100644 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ b/generated/google/apis/dns_v1beta2/classes.rb @@ -22,32 +22,26 @@ module Google module Apis module DnsV1beta2 - # A Change represents a set of ResourceRecordSet additions and deletions applied - # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are - # modified by creating a new Change element in the Changes collection. In turn - # the Changes collection also records the past modifications to the - # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is - # the sum effect of applying all Change elements in the Changes collection in - # sequence. + # class Change include Google::Apis::Core::Hashable - # Which ResourceRecordSets to add? + # # Corresponds to the JSON property `additions` # @return [Array] attr_accessor :additions - # Which ResourceRecordSets to remove? Must match existing data exactly. + # # Corresponds to the JSON property `deletions` # @return [Array] attr_accessor :deletions - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # If the DNS queries for the zone will be served. + # # Corresponds to the JSON property `isServing` # @return [Boolean] attr_accessor :is_serving @@ -58,15 +52,12 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server (output only). This is - # in RFC3339 text format. + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation (output only). A status of "done" means that the - # request to update the authoritative servers has been sent, but the servers - # might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -87,17 +78,16 @@ module Google end end - # The response to a request to enumerate Changes to a ResourceRecordSets - # collection. + # class ChangesListResponse include Google::Apis::Core::Hashable - # The requested changes. + # # Corresponds to the JSON property `changes` # @return [Array] attr_accessor :changes - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -107,14 +97,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -132,59 +115,47 @@ module Google end end - # A DNSSEC key pair. + # class DnsKey include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after - # creation time. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # The time that this resource was created in the control plane. This is in - # RFC3339 text format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the resource's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey. - # These digests are needed to construct a DS record that points at this DNS key. - # Output only. + # # Corresponds to the JSON property `digests` # @return [Array] attr_accessor :digests - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Active keys will be used to sign subsequent changes to the ManagedZone. - # Inactive keys will still be present as DNSKEY Resource Records for the use of - # resolvers validating existing signatures. + # # Corresponds to the JSON property `isActive` # @return [Boolean] attr_accessor :is_active alias_method :is_active?, :is_active - # Length of the key in bits. Specified at creation time then immutable. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # The key tag is a non-cryptographic hash of the a DNSKEY resource record - # associated with this DnsKey. The key tag can be used to identify a DNSKEY more - # quickly (but it is not a unique identifier). In particular, the key tag is - # used in a parent zone's DS record to point at the DNSKEY in this child - # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm - # to calculate it is specified in RFC4034 Appendix B. Output only. + # # Corresponds to the JSON property `keyTag` # @return [Fixnum] attr_accessor :key_tag @@ -194,16 +165,12 @@ module Google # @return [String] attr_accessor :kind - # Base64 encoded public half of this key. Output only. + # # Corresponds to the JSON property `publicKey` # @return [String] attr_accessor :public_key - # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the - # Secure Entry Point flag set and, when active, will be used to sign only - # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag - # will be cleared and this key will be used to sign only resource record sets of - # other types. Immutable after creation time. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -232,13 +199,12 @@ module Google class DnsKeyDigest include Google::Apis::Core::Hashable - # The base-16 encoded bytes of this digest. Suitable for use in a DS resource - # record. + # # Corresponds to the JSON property `digest` # @return [String] attr_accessor :digest - # Specifies the algorithm used to calculate this digest. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -254,26 +220,21 @@ module Google end end - # Parameters for DnsKey key generation. Used for generating initial keys for a - # new ManagedZone and as default when adding a new DnsKey. + # class DnsKeySpec include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # Length of the keys in bits. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). - # Key signing keys have the Secure Entry Point flag set and, when active, will - # only be used to sign resource record sets of type DNSKEY. Zone signing keys do - # not have the Secure Entry Point flag set and will be used to sign all other - # types of resource record sets. + # # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type @@ -297,16 +258,16 @@ module Google end end - # The response to a request to enumerate DnsKeys in a ManagedZone. + # class DnsKeysListResponse include Google::Apis::Core::Hashable - # The requested resources. + # # Corresponds to the JSON property `dnsKeys` # @return [Array] attr_accessor :dns_keys - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -316,14 +277,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -341,42 +295,36 @@ module Google end end - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # class ManagedZone include Google::Apis::Core::Hashable - # The time that this resource was created on the server. This is in RFC3339 text - # format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the managed zone's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The DNS name of this managed zone, for instance "example.com.". + # # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name - # DNSSEC configuration. + # # Corresponds to the JSON property `dnssecConfig` # @return [Google::Apis::DnsV1beta2::ManagedZoneDnsSecConfig] attr_accessor :dnssec_config - # The presence for this field indicates that outbound forwarding is enabled for - # this zone. The value of this field contains the set of destinations to forward - # to. + # # Corresponds to the JSON property `forwardingConfig` # @return [Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig] attr_accessor :forwarding_config - # Unique identifier for the resource; defined by the server (output only) + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -387,53 +335,47 @@ module Google # @return [String] attr_accessor :kind - # User labels. + # # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # User assigned name for this resource. Must be unique within the project. The - # name must be 1-63 characters long, must begin with a letter, end with a letter - # or digit, and only contain lowercase letters, digits or dashes. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet - # is a set of DNS name servers that all host the same ManagedZones. Most users - # will leave this field unset. + # # Corresponds to the JSON property `nameServerSet` # @return [String] attr_accessor :name_server_set - # Delegate your managed_zone to these virtual name servers; defined by the - # server (output only) + # # Corresponds to the JSON property `nameServers` # @return [Array] attr_accessor :name_servers - # The presence of this field indicates that DNS Peering is enabled for this zone. - # The value of this field contains the network to peer with. + # # Corresponds to the JSON property `peeringConfig` # @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfig] attr_accessor :peering_config - # For privately visible zones, the set of Virtual Private Cloud resources that - # the zone is visible from. + # # Corresponds to the JSON property `privateVisibilityConfig` # @return [Google::Apis::DnsV1beta2::ManagedZonePrivateVisibilityConfig] attr_accessor :private_visibility_config - # The presence of this field indicates that this is a managed reverse lookup - # zone and Cloud DNS will resolve reverse lookup queries using automatically - # configured records for VPC resources. This only applies to networks listed - # under private_visibility_config. + # # Corresponds to the JSON property `reverseLookupConfig` # @return [Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig] attr_accessor :reverse_lookup_config - # The zone's visibility: public zones are exposed to the Internet, while private - # zones are visible only to Virtual Private Cloud resources. + # + # Corresponds to the JSON property `serviceDirectoryConfig` + # @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig] + attr_accessor :service_directory_config + + # # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility @@ -458,6 +400,7 @@ module Google @peering_config = args[:peering_config] if args.key?(:peering_config) @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) + @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config) @visibility = args[:visibility] if args.key?(:visibility) end end @@ -466,8 +409,7 @@ module Google class ManagedZoneDnsSecConfig include Google::Apis::Core::Hashable - # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `defaultKeySpecs` # @return [Array] attr_accessor :default_key_specs @@ -478,13 +420,12 @@ module Google # @return [String] attr_accessor :kind - # Specifies the mechanism for authenticated denial-of-existence responses. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `nonExistence` # @return [String] attr_accessor :non_existence - # Specifies whether DNSSEC is enabled, and what mode it is in. + # # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -512,8 +453,7 @@ module Google # @return [String] attr_accessor :kind - # List of target name servers to forward to. Cloud DNS will select the best - # available name server if more than one target is given. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -533,15 +473,12 @@ module Google class ManagedZoneForwardingConfigNameServerTarget include Google::Apis::Core::Hashable - # Forwarding path for this NameServerTarget, if unset or set to DEFAULT, Cloud - # DNS will make forwarding decision based on address ranges, i.e. RFC1918 - # addresses go to the VPC, Non-RFC1918 addresses go to the Internet. When set to - # PRIVATE, Cloud DNS will always send queries through VPC for this target + # # Corresponds to the JSON property `forwardingPath` # @return [String] attr_accessor :forwarding_path - # IPv4 address of a target name server. + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -568,7 +505,7 @@ module Google class ManagedZoneOperationsListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -578,20 +515,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The operation resources. + # # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -619,7 +548,7 @@ module Google # @return [String] attr_accessor :kind - # The network with which to peer. + # # Corresponds to the JSON property `targetNetwork` # @return [Google::Apis::DnsV1beta2::ManagedZonePeeringConfigTargetNetwork] attr_accessor :target_network @@ -639,10 +568,7 @@ module Google class ManagedZonePeeringConfigTargetNetwork include Google::Apis::Core::Hashable - # The time at which the zone was deactivated, in RFC 3339 date-time format. An - # empty string indicates that the peering connection is active. The producer - # network can deactivate a zone. The zone is automatically deactivated if the - # producer network that the zone targeted is deleted. Output only. + # # Corresponds to the JSON property `deactivateTime` # @return [String] attr_accessor :deactivate_time @@ -653,9 +579,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to forward queries to. This should - # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/ - # global/networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -682,7 +606,7 @@ module Google # @return [String] attr_accessor :kind - # The list of VPC networks that can see this zone. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -708,9 +632,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -746,11 +668,69 @@ module Google end end + # + class ManagedZoneServiceDirectoryConfig + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneServiceDirectoryConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `namespace` + # @return [Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace] + attr_accessor :namespace + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @namespace = args[:namespace] if args.key?(:namespace) + end + end + + # + class ManagedZoneServiceDirectoryConfigNamespace + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `deletionTime` + # @return [String] + attr_accessor :deletion_time + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneServiceDirectoryConfigNamespace". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # + # Corresponds to the JSON property `namespaceUrl` + # @return [String] + attr_accessor :namespace_url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deletion_time = args[:deletion_time] if args.key?(:deletion_time) + @kind = args[:kind] if args.key?(:kind) + @namespace_url = args[:namespace_url] if args.key?(:namespace_url) + end + end + # class ManagedZonesListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -760,20 +740,12 @@ module Google # @return [String] attr_accessor :kind - # The managed zone resources. + # # Corresponds to the JSON property `managedZones` # @return [Array] attr_accessor :managed_zones - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -791,22 +763,16 @@ module Google end end - # An operation represents a successful mutation performed on a Cloud DNS - # resource. Operations provide: - An audit log of server resource mutations. - A - # way to recover/retry API calls in the case where the response is never - # received by the caller. Use the caller specified client_operation_id. + # class Operation include Google::Apis::Core::Hashable - # Only populated if the operation targeted a DnsKey (output only). + # # Corresponds to the JSON property `dnsKeyContext` # @return [Google::Apis::DnsV1beta2::OperationDnsKeyContext] attr_accessor :dns_key_context - # Unique identifier for the resource. This is the client_operation_id if the - # client specified it when the mutation was initiated, otherwise, it is - # generated by the server. The name must be 1-63 characters long and match the - # regular expression [-a-z0-9]? (output only) + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -817,32 +783,27 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server. This is in RFC3339 - # text format (output only). + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation. Can be one of the following: "PENDING" or "DONE" ( - # output only). A status of "DONE" means that the request to update the - # authoritative servers has been sent, but the servers might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Type of the operation. Operations include insert, update, and delete (output - # only). + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # User who requested the operation, for example: user@example.com. cloud-dns- - # system for operations automatically done by the system. (output only) + # # Corresponds to the JSON property `user` # @return [String] attr_accessor :user - # Only populated if the operation targeted a ManagedZone (output only). + # # Corresponds to the JSON property `zoneContext` # @return [Google::Apis::DnsV1beta2::OperationManagedZoneContext] attr_accessor :zone_context @@ -868,12 +829,12 @@ module Google class OperationDnsKeyContext include Google::Apis::Core::Hashable - # A DNSSEC key pair. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV1beta2::DnsKey] attr_accessor :new_value - # A DNSSEC key pair. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV1beta2::DnsKey] attr_accessor :old_value @@ -893,16 +854,12 @@ module Google class OperationManagedZoneContext include Google::Apis::Core::Hashable - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV1beta2::ManagedZone] attr_accessor :new_value - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV1beta2::ManagedZone] attr_accessor :old_value @@ -922,7 +879,7 @@ module Google class PoliciesListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -932,20 +889,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The policy resources. + # # Corresponds to the JSON property `policies` # @return [Array] attr_accessor :policies @@ -967,13 +916,12 @@ module Google class PoliciesPatchResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV1beta2::Policy] attr_accessor :policy @@ -993,13 +941,12 @@ module Google class PoliciesUpdateResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV1beta2::Policy] attr_accessor :policy @@ -1015,40 +962,33 @@ module Google end end - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # class Policy include Google::Apis::Core::Hashable - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `alternativeNameServerConfig` # @return [Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfig] attr_accessor :alternative_name_server_config - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the policy's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Allows networks bound to this policy to receive DNS queries sent by VMs or - # applications over VPN connections. When enabled, a virtual IP address will be - # allocated from each of the sub-networks that are bound to this policy. + # # Corresponds to the JSON property `enableInboundForwarding` # @return [Boolean] attr_accessor :enable_inbound_forwarding alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - # Controls whether logging is enabled for the networks bound to this policy. - # Defaults to no logging if not set. + # # Corresponds to the JSON property `enableLogging` # @return [Boolean] attr_accessor :enable_logging alias_method :enable_logging?, :enable_logging - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -1058,12 +998,12 @@ module Google # @return [String] attr_accessor :kind - # User assigned name for this policy. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # List of network names specifying networks to which this policy is applied. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -1095,9 +1035,7 @@ module Google # @return [String] attr_accessor :kind - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -1117,15 +1055,12 @@ module Google class PolicyAlternativeNameServerConfigTargetNameServer include Google::Apis::Core::Hashable - # Forwarding path for this TargetNameServer, if unset or set to DEFAULT, Cloud - # DNS will make forwarding decision based on address ranges, i.e. RFC1918 - # addresses go to the VPC, Non-RFC1918 addresses go to the Internet. When set to - # PRIVATE, Cloud DNS will always send queries through VPC for this target + # # Corresponds to the JSON property `forwardingPath` # @return [String] attr_accessor :forwarding_path - # IPv4 address to forward to. + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -1158,9 +1093,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -1176,13 +1109,11 @@ module Google end end - # A project resource. The project is a top level container for resources - # including Cloud DNS ManagedZones. Projects can be created only in the APIs - # console. + # class Project include Google::Apis::Core::Hashable - # User assigned unique identifier for the resource (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1193,13 +1124,12 @@ module Google # @return [String] attr_accessor :kind - # Unique numeric identifier for the resource; defined by the server (output only) - # . + # # Corresponds to the JSON property `number` # @return [Fixnum] attr_accessor :number - # Limits associated with a Project. + # # Corresponds to the JSON property `quota` # @return [Google::Apis::DnsV1beta2::Quota] attr_accessor :quota @@ -1217,11 +1147,11 @@ module Google end end - # Limits associated with a Project. + # class Quota include Google::Apis::Core::Hashable - # Maximum allowed number of DnsKeys per ManagedZone. + # # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] attr_accessor :dns_keys_per_managed_zone @@ -1231,69 +1161,67 @@ module Google # @return [String] attr_accessor :kind - # Maximum allowed number of managed zones in the project. + # # Corresponds to the JSON property `managedZones` # @return [Fixnum] attr_accessor :managed_zones - # Maximum allowed number of managed zones which can be attached to a network. + # # Corresponds to the JSON property `managedZonesPerNetwork` # @return [Fixnum] attr_accessor :managed_zones_per_network - # Maximum allowed number of networks to which a privately scoped zone can be - # attached. + # # Corresponds to the JSON property `networksPerManagedZone` # @return [Fixnum] attr_accessor :networks_per_managed_zone - # Maximum allowed number of networks per policy. + # # Corresponds to the JSON property `networksPerPolicy` # @return [Fixnum] attr_accessor :networks_per_policy - # Maximum allowed number of policies per project. + # # Corresponds to the JSON property `policies` # @return [Fixnum] attr_accessor :policies - # Maximum allowed number of ResourceRecords per ResourceRecordSet. + # # Corresponds to the JSON property `resourceRecordsPerRrset` # @return [Fixnum] attr_accessor :resource_records_per_rrset - # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetAdditionsPerChange` # @return [Fixnum] attr_accessor :rrset_additions_per_change - # Maximum allowed number of ResourceRecordSets to delete per - # ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetDeletionsPerChange` # @return [Fixnum] attr_accessor :rrset_deletions_per_change - # Maximum allowed number of ResourceRecordSets per zone in the project. + # # Corresponds to the JSON property `rrsetsPerManagedZone` # @return [Fixnum] attr_accessor :rrsets_per_managed_zone - # Maximum allowed number of target name servers per managed forwarding zone. + # # Corresponds to the JSON property `targetNameServersPerManagedZone` # @return [Fixnum] attr_accessor :target_name_servers_per_managed_zone - # Maximum allowed number of alternative target name servers per policy. + # # Corresponds to the JSON property `targetNameServersPerPolicy` # @return [Fixnum] attr_accessor :target_name_servers_per_policy - # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. + # # Corresponds to the JSON property `totalRrdataSizePerChange` # @return [Fixnum] attr_accessor :total_rrdata_size_per_change - # DNSSEC algorithm and key length types that can be used for DnsKeys. + # # Corresponds to the JSON property `whitelistedKeySpecs` # @return [Array] attr_accessor :whitelisted_key_specs @@ -1322,7 +1250,7 @@ module Google end end - # A unit of data that will be returned by the DNS servers. + # class ResourceRecordSet include Google::Apis::Core::Hashable @@ -1332,29 +1260,27 @@ module Google # @return [String] attr_accessor :kind - # For example, www.example.com. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see - # examples. + # # Corresponds to the JSON property `rrdatas` # @return [Array] attr_accessor :rrdatas - # As defined in RFC 4034 (section 3.2). + # # Corresponds to the JSON property `signatureRrdatas` # @return [Array] attr_accessor :signature_rrdatas - # Number of seconds that this ResourceRecordSet can be cached by resolvers. + # # Corresponds to the JSON property `ttl` # @return [Fixnum] attr_accessor :ttl - # The identifier of a supported record type. See the list of Supported DNS - # record types. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1378,7 +1304,7 @@ module Google class ResourceRecordSetsListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV1beta2::ResponseHeader] attr_accessor :header @@ -1388,20 +1314,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The resource record set resources. + # # Corresponds to the JSON property `rrsets` # @return [Array] attr_accessor :rrsets @@ -1419,13 +1337,11 @@ module Google end end - # Elements common to every response. + # class ResponseHeader include Google::Apis::Core::Hashable - # For mutating operation requests that completed successfully. This is the - # client_operation_id if the client specified it, otherwise it is generated by - # the server (output only). + # # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id diff --git a/generated/google/apis/dns_v1beta2/representations.rb b/generated/google/apis/dns_v1beta2/representations.rb index dcbdb31f4..938bd8d8d 100644 --- a/generated/google/apis/dns_v1beta2/representations.rb +++ b/generated/google/apis/dns_v1beta2/representations.rb @@ -118,6 +118,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManagedZoneServiceDirectoryConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ManagedZoneServiceDirectoryConfigNamespace + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ManagedZonesListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -311,6 +323,8 @@ module Google property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneReverseLookupConfig::Representation + property :service_directory_config, as: 'serviceDirectoryConfig', class: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig, decorator: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfig::Representation + property :visibility, as: 'visibility' end end @@ -398,6 +412,24 @@ module Google end end + class ManagedZoneServiceDirectoryConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :namespace, as: 'namespace', class: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace, decorator: Google::Apis::DnsV1beta2::ManagedZoneServiceDirectoryConfigNamespace::Representation + + end + end + + class ManagedZoneServiceDirectoryConfigNamespace + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deletion_time, as: 'deletionTime' + property :kind, as: 'kind' + property :namespace_url, as: 'namespaceUrl' + end + end + class ManagedZonesListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dns_v1beta2/service.rb b/generated/google/apis/dns_v1beta2/service.rb index ff46b5cc7..11b3b4639 100644 --- a/generated/google/apis/dns_v1beta2/service.rb +++ b/generated/google/apis/dns_v1beta2/service.rb @@ -51,16 +51,11 @@ module Google @batch_path = 'batch/dns/v1beta2' end - # Atomically update the ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1beta2::Change] change_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -95,18 +90,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Change. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] change_id - # The identifier of the requested change, from a previous - # ResourceRecordSetsChangeResponse. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -140,22 +128,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Changes to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported value is change sequence. # @param [String] sort_order - # Sorting order direction: 'ascending' or 'descending'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -191,21 +170,12 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing DnsKey. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] dns_key_id - # The identifier of the requested DnsKey. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -240,22 +210,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate DnsKeys to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -290,16 +250,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Operation. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [String] operation - # Identifies the operation addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -333,19 +288,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Operations for the given ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported values are START_TIME and ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -380,13 +328,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -420,15 +365,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -459,15 +399,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -500,17 +435,11 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ManagedZones that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] dns_name - # Restricts the list to return only zones with this domain name. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -544,16 +473,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -588,16 +512,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -632,13 +551,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new Policy + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -672,15 +588,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created Policy. Will fail if the policy is still being - # referenced by a network. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -711,14 +622,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -751,15 +658,10 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate all Policies associated with a project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -792,15 +694,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -835,15 +733,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV1beta2::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -878,12 +772,9 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -915,24 +806,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ResourceRecordSets that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] name - # Restricts the list to return only records with this fully qualified domain - # name. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] type - # Restricts the list to return only records of this type. If present, the "name" - # parameter must also be present. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index e03505c89..a84d3733c 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/cloud-dns module DnsV2beta1 VERSION = 'V2beta1' - REVISION = '20191205' + REVISION = '20200515' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dns_v2beta1/classes.rb b/generated/google/apis/dns_v2beta1/classes.rb index 34889a289..fe1dfa897 100644 --- a/generated/google/apis/dns_v2beta1/classes.rb +++ b/generated/google/apis/dns_v2beta1/classes.rb @@ -22,32 +22,26 @@ module Google module Apis module DnsV2beta1 - # A Change represents a set of ResourceRecordSet additions and deletions applied - # atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are - # modified by creating a new Change element in the Changes collection. In turn - # the Changes collection also records the past modifications to the - # ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is - # the sum effect of applying all Change elements in the Changes collection in - # sequence. + # class Change include Google::Apis::Core::Hashable - # Which ResourceRecordSets to add? + # # Corresponds to the JSON property `additions` # @return [Array] attr_accessor :additions - # Which ResourceRecordSets to remove? Must match existing data exactly. + # # Corresponds to the JSON property `deletions` # @return [Array] attr_accessor :deletions - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # If the DNS queries for the zone will be served. + # # Corresponds to the JSON property `isServing` # @return [Boolean] attr_accessor :is_serving @@ -58,15 +52,12 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server (output only). This is - # in RFC3339 text format. + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation (output only). A status of "done" means that the - # request to update the authoritative servers has been sent, but the servers - # might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -87,17 +78,16 @@ module Google end end - # The response to a request to enumerate Changes to a ResourceRecordSets - # collection. + # class ChangesListResponse include Google::Apis::Core::Hashable - # The requested changes. + # # Corresponds to the JSON property `changes` # @return [Array] attr_accessor :changes - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -107,14 +97,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -132,59 +115,47 @@ module Google end end - # A DNSSEC key pair. + # class DnsKey include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. Immutable after - # creation time. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # The time that this resource was created in the control plane. This is in - # RFC3339 text format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the resource's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Cryptographic hashes of the DNSKEY resource record associated with this DnsKey. - # These digests are needed to construct a DS record that points at this DNS key. - # Output only. + # # Corresponds to the JSON property `digests` # @return [Array] attr_accessor :digests - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Active keys will be used to sign subsequent changes to the ManagedZone. - # Inactive keys will still be present as DNSKEY Resource Records for the use of - # resolvers validating existing signatures. + # # Corresponds to the JSON property `isActive` # @return [Boolean] attr_accessor :is_active alias_method :is_active?, :is_active - # Length of the key in bits. Specified at creation time then immutable. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # The key tag is a non-cryptographic hash of the a DNSKEY resource record - # associated with this DnsKey. The key tag can be used to identify a DNSKEY more - # quickly (but it is not a unique identifier). In particular, the key tag is - # used in a parent zone's DS record to point at the DNSKEY in this child - # ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm - # to calculate it is specified in RFC4034 Appendix B. Output only. + # # Corresponds to the JSON property `keyTag` # @return [Fixnum] attr_accessor :key_tag @@ -194,16 +165,12 @@ module Google # @return [String] attr_accessor :kind - # Base64 encoded public half of this key. Output only. + # # Corresponds to the JSON property `publicKey` # @return [String] attr_accessor :public_key - # One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the - # Secure Entry Point flag set and, when active, will be used to sign only - # resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag - # will be cleared and this key will be used to sign only resource record sets of - # other types. Immutable after creation time. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -232,13 +199,12 @@ module Google class DnsKeyDigest include Google::Apis::Core::Hashable - # The base-16 encoded bytes of this digest. Suitable for use in a DS resource - # record. + # # Corresponds to the JSON property `digest` # @return [String] attr_accessor :digest - # Specifies the algorithm used to calculate this digest. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -254,26 +220,21 @@ module Google end end - # Parameters for DnsKey key generation. Used for generating initial keys for a - # new ManagedZone and as default when adding a new DnsKey. + # class DnsKeySpec include Google::Apis::Core::Hashable - # String mnemonic specifying the DNSSEC algorithm of this key. + # # Corresponds to the JSON property `algorithm` # @return [String] attr_accessor :algorithm - # Length of the keys in bits. + # # Corresponds to the JSON property `keyLength` # @return [Fixnum] attr_accessor :key_length - # Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). - # Key signing keys have the Secure Entry Point flag set and, when active, will - # only be used to sign resource record sets of type DNSKEY. Zone signing keys do - # not have the Secure Entry Point flag set and will be used to sign all other - # types of resource record sets. + # # Corresponds to the JSON property `keyType` # @return [String] attr_accessor :key_type @@ -297,16 +258,16 @@ module Google end end - # The response to a request to enumerate DnsKeys in a ManagedZone. + # class DnsKeysListResponse include Google::Apis::Core::Hashable - # The requested resources. + # # Corresponds to the JSON property `dnsKeys` # @return [Array] attr_accessor :dns_keys - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -316,14 +277,7 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a "snapshot" of collections larger than the maximum page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -341,42 +295,36 @@ module Google end end - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # class ManagedZone include Google::Apis::Core::Hashable - # The time that this resource was created on the server. This is in RFC3339 text - # format. Output only. + # # Corresponds to the JSON property `creationTime` # @return [String] attr_accessor :creation_time - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the managed zone's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The DNS name of this managed zone, for instance "example.com.". + # # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name - # DNSSEC configuration. + # # Corresponds to the JSON property `dnssecConfig` # @return [Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig] attr_accessor :dnssec_config - # The presence for this field indicates that outbound forwarding is enabled for - # this zone. The value of this field contains the set of destinations to forward - # to. + # # Corresponds to the JSON property `forwardingConfig` # @return [Google::Apis::DnsV2beta1::ManagedZoneForwardingConfig] attr_accessor :forwarding_config - # Unique identifier for the resource; defined by the server (output only) + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -387,45 +335,42 @@ module Google # @return [String] attr_accessor :kind - # User labels. + # # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # User assigned name for this resource. Must be unique within the project. The - # name must be 1-63 characters long, must begin with a letter, end with a letter - # or digit, and only contain lowercase letters, digits or dashes. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet - # is a set of DNS name servers that all host the same ManagedZones. Most users - # will leave this field unset. + # # Corresponds to the JSON property `nameServerSet` # @return [String] attr_accessor :name_server_set - # Delegate your managed_zone to these virtual name servers; defined by the - # server (output only) + # # Corresponds to the JSON property `nameServers` # @return [Array] attr_accessor :name_servers - # The presence of this field indicates that DNS Peering is enabled for this zone. - # The value of this field contains the network to peer with. + # # Corresponds to the JSON property `peeringConfig` # @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfig] attr_accessor :peering_config - # For privately visible zones, the set of Virtual Private Cloud resources that - # the zone is visible from. + # # Corresponds to the JSON property `privateVisibilityConfig` # @return [Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig] attr_accessor :private_visibility_config - # The zone's visibility: public zones are exposed to the Internet, while private - # zones are visible only to Virtual Private Cloud resources. + # + # Corresponds to the JSON property `reverseLookupConfig` + # @return [Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig] + attr_accessor :reverse_lookup_config + + # # Corresponds to the JSON property `visibility` # @return [String] attr_accessor :visibility @@ -449,6 +394,7 @@ module Google @name_servers = args[:name_servers] if args.key?(:name_servers) @peering_config = args[:peering_config] if args.key?(:peering_config) @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) + @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) @visibility = args[:visibility] if args.key?(:visibility) end end @@ -457,8 +403,7 @@ module Google class ManagedZoneDnsSecConfig include Google::Apis::Core::Hashable - # Specifies parameters for generating initial DnsKeys for this ManagedZone. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `defaultKeySpecs` # @return [Array] attr_accessor :default_key_specs @@ -469,13 +414,12 @@ module Google # @return [String] attr_accessor :kind - # Specifies the mechanism for authenticated denial-of-existence responses. Can - # only be changed while the state is OFF. + # # Corresponds to the JSON property `nonExistence` # @return [String] attr_accessor :non_existence - # Specifies whether DNSSEC is enabled, and what mode it is in. + # # Corresponds to the JSON property `state` # @return [String] attr_accessor :state @@ -503,8 +447,7 @@ module Google # @return [String] attr_accessor :kind - # List of target name servers to forward to. Cloud DNS will select the best - # available name server if more than one target is given. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -524,7 +467,12 @@ module Google class ManagedZoneForwardingConfigNameServerTarget include Google::Apis::Core::Hashable - # IPv4 address of a target name server. + # + # Corresponds to the JSON property `forwardingPath` + # @return [String] + attr_accessor :forwarding_path + + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -541,6 +489,7 @@ module Google # Update properties of this object def update!(**args) + @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) @kind = args[:kind] if args.key?(:kind) end @@ -550,7 +499,7 @@ module Google class ManagedZoneOperationsListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -560,20 +509,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The operation resources. + # # Corresponds to the JSON property `operations` # @return [Array] attr_accessor :operations @@ -601,7 +542,7 @@ module Google # @return [String] attr_accessor :kind - # The network with which to peer. + # # Corresponds to the JSON property `targetNetwork` # @return [Google::Apis::DnsV2beta1::ManagedZonePeeringConfigTargetNetwork] attr_accessor :target_network @@ -621,10 +562,7 @@ module Google class ManagedZonePeeringConfigTargetNetwork include Google::Apis::Core::Hashable - # The time at which the zone was deactivated, in RFC 3339 date-time format. An - # empty string indicates that the peering connection is active. The producer - # network can deactivate a zone. The zone is automatically deactivated if the - # producer network that the zone targeted is deleted. Output only. + # # Corresponds to the JSON property `deactivateTime` # @return [String] attr_accessor :deactivate_time @@ -635,9 +573,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to forward queries to. This should - # be formatted like https://www.googleapis.com/compute/v1/projects/`project`/ - # global/networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -664,7 +600,7 @@ module Google # @return [String] attr_accessor :kind - # The list of VPC networks that can see this zone. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -690,9 +626,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -708,11 +642,31 @@ module Google end end + # + class ManagedZoneReverseLookupConfig + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "dns# + # managedZoneReverseLookupConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + # class ManagedZonesListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -722,20 +676,12 @@ module Google # @return [String] attr_accessor :kind - # The managed zone resources. + # # Corresponds to the JSON property `managedZones` # @return [Array] attr_accessor :managed_zones - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -753,22 +699,16 @@ module Google end end - # An operation represents a successful mutation performed on a Cloud DNS - # resource. Operations provide: - An audit log of server resource mutations. - A - # way to recover/retry API calls in the case where the response is never - # received by the caller. Use the caller specified client_operation_id. + # class Operation include Google::Apis::Core::Hashable - # Only populated if the operation targeted a DnsKey (output only). + # # Corresponds to the JSON property `dnsKeyContext` # @return [Google::Apis::DnsV2beta1::OperationDnsKeyContext] attr_accessor :dns_key_context - # Unique identifier for the resource. This is the client_operation_id if the - # client specified it when the mutation was initiated, otherwise, it is - # generated by the server. The name must be 1-63 characters long and match the - # regular expression [-a-z0-9]? (output only) + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -779,32 +719,27 @@ module Google # @return [String] attr_accessor :kind - # The time that this operation was started by the server. This is in RFC3339 - # text format (output only). + # # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time - # Status of the operation. Can be one of the following: "PENDING" or "DONE" ( - # output only). A status of "DONE" means that the request to update the - # authoritative servers has been sent, but the servers might not be updated yet. + # # Corresponds to the JSON property `status` # @return [String] attr_accessor :status - # Type of the operation. Operations include insert, update, and delete (output - # only). + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type - # User who requested the operation, for example: user@example.com. cloud-dns- - # system for operations automatically done by the system. (output only) + # # Corresponds to the JSON property `user` # @return [String] attr_accessor :user - # Only populated if the operation targeted a ManagedZone (output only). + # # Corresponds to the JSON property `zoneContext` # @return [Google::Apis::DnsV2beta1::OperationManagedZoneContext] attr_accessor :zone_context @@ -830,12 +765,12 @@ module Google class OperationDnsKeyContext include Google::Apis::Core::Hashable - # A DNSSEC key pair. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV2beta1::DnsKey] attr_accessor :new_value - # A DNSSEC key pair. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV2beta1::DnsKey] attr_accessor :old_value @@ -855,16 +790,12 @@ module Google class OperationManagedZoneContext include Google::Apis::Core::Hashable - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `newValue` # @return [Google::Apis::DnsV2beta1::ManagedZone] attr_accessor :new_value - # A zone is a subtree of the DNS namespace under one administrative - # responsibility. A ManagedZone is a resource that represents a DNS zone hosted - # by the Cloud DNS service. + # # Corresponds to the JSON property `oldValue` # @return [Google::Apis::DnsV2beta1::ManagedZone] attr_accessor :old_value @@ -884,7 +815,7 @@ module Google class PoliciesListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -894,20 +825,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your page token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The policy resources. + # # Corresponds to the JSON property `policies` # @return [Array] attr_accessor :policies @@ -929,13 +852,12 @@ module Google class PoliciesPatchResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV2beta1::Policy] attr_accessor :policy @@ -955,13 +877,12 @@ module Google class PoliciesUpdateResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # # Corresponds to the JSON property `policy` # @return [Google::Apis::DnsV2beta1::Policy] attr_accessor :policy @@ -977,40 +898,33 @@ module Google end end - # A policy is a collection of DNS rules applied to one or more Virtual Private - # Cloud resources. + # class Policy include Google::Apis::Core::Hashable - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `alternativeNameServerConfig` # @return [Google::Apis::DnsV2beta1::PolicyAlternativeNameServerConfig] attr_accessor :alternative_name_server_config - # A mutable string of at most 1024 characters associated with this resource for - # the user's convenience. Has no effect on the policy's function. + # # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Allows networks bound to this policy to receive DNS queries sent by VMs or - # applications over VPN connections. When enabled, a virtual IP address will be - # allocated from each of the sub-networks that are bound to this policy. + # # Corresponds to the JSON property `enableInboundForwarding` # @return [Boolean] attr_accessor :enable_inbound_forwarding alias_method :enable_inbound_forwarding?, :enable_inbound_forwarding - # Controls whether logging is enabled for the networks bound to this policy. - # Defaults to no logging if not set. + # # Corresponds to the JSON property `enableLogging` # @return [Boolean] attr_accessor :enable_logging alias_method :enable_logging?, :enable_logging - # Unique identifier for the resource; defined by the server (output only). + # # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id @@ -1020,12 +934,12 @@ module Google # @return [String] attr_accessor :kind - # User assigned name for this policy. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # List of network names specifying networks to which this policy is applied. + # # Corresponds to the JSON property `networks` # @return [Array] attr_accessor :networks @@ -1057,9 +971,7 @@ module Google # @return [String] attr_accessor :kind - # Sets an alternative name server for the associated networks. When specified, - # all DNS queries are forwarded to a name server that you choose. Names such as . - # internal are not available when an alternative name server is specified. + # # Corresponds to the JSON property `targetNameServers` # @return [Array] attr_accessor :target_name_servers @@ -1079,7 +991,12 @@ module Google class PolicyAlternativeNameServerConfigTargetNameServer include Google::Apis::Core::Hashable - # IPv4 address to forward to. + # + # Corresponds to the JSON property `forwardingPath` + # @return [String] + attr_accessor :forwarding_path + + # # Corresponds to the JSON property `ipv4Address` # @return [String] attr_accessor :ipv4_address @@ -1096,6 +1013,7 @@ module Google # Update properties of this object def update!(**args) + @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path) @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address) @kind = args[:kind] if args.key?(:kind) end @@ -1111,9 +1029,7 @@ module Google # @return [String] attr_accessor :kind - # The fully qualified URL of the VPC network to bind to. This should be - # formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/ - # networks/`network` + # # Corresponds to the JSON property `networkUrl` # @return [String] attr_accessor :network_url @@ -1129,13 +1045,11 @@ module Google end end - # A project resource. The project is a top level container for resources - # including Cloud DNS ManagedZones. Projects can be created only in the APIs - # console. + # class Project include Google::Apis::Core::Hashable - # User assigned unique identifier for the resource (output only). + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -1146,13 +1060,12 @@ module Google # @return [String] attr_accessor :kind - # Unique numeric identifier for the resource; defined by the server (output only) - # . + # # Corresponds to the JSON property `number` # @return [Fixnum] attr_accessor :number - # Limits associated with a Project. + # # Corresponds to the JSON property `quota` # @return [Google::Apis::DnsV2beta1::Quota] attr_accessor :quota @@ -1170,11 +1083,11 @@ module Google end end - # Limits associated with a Project. + # class Quota include Google::Apis::Core::Hashable - # Maximum allowed number of DnsKeys per ManagedZone. + # # Corresponds to the JSON property `dnsKeysPerManagedZone` # @return [Fixnum] attr_accessor :dns_keys_per_managed_zone @@ -1184,69 +1097,67 @@ module Google # @return [String] attr_accessor :kind - # Maximum allowed number of managed zones in the project. + # # Corresponds to the JSON property `managedZones` # @return [Fixnum] attr_accessor :managed_zones - # Maximum allowed number of managed zones which can be attached to a network. + # # Corresponds to the JSON property `managedZonesPerNetwork` # @return [Fixnum] attr_accessor :managed_zones_per_network - # Maximum allowed number of networks to which a privately scoped zone can be - # attached. + # # Corresponds to the JSON property `networksPerManagedZone` # @return [Fixnum] attr_accessor :networks_per_managed_zone - # Maximum allowed number of networks per policy. + # # Corresponds to the JSON property `networksPerPolicy` # @return [Fixnum] attr_accessor :networks_per_policy - # Maximum allowed number of policies per project. + # # Corresponds to the JSON property `policies` # @return [Fixnum] attr_accessor :policies - # Maximum allowed number of ResourceRecords per ResourceRecordSet. + # # Corresponds to the JSON property `resourceRecordsPerRrset` # @return [Fixnum] attr_accessor :resource_records_per_rrset - # Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetAdditionsPerChange` # @return [Fixnum] attr_accessor :rrset_additions_per_change - # Maximum allowed number of ResourceRecordSets to delete per - # ChangesCreateRequest. + # # Corresponds to the JSON property `rrsetDeletionsPerChange` # @return [Fixnum] attr_accessor :rrset_deletions_per_change - # Maximum allowed number of ResourceRecordSets per zone in the project. + # # Corresponds to the JSON property `rrsetsPerManagedZone` # @return [Fixnum] attr_accessor :rrsets_per_managed_zone - # Maximum allowed number of target name servers per managed forwarding zone. + # # Corresponds to the JSON property `targetNameServersPerManagedZone` # @return [Fixnum] attr_accessor :target_name_servers_per_managed_zone - # Maximum allowed number of alternative target name servers per policy. + # # Corresponds to the JSON property `targetNameServersPerPolicy` # @return [Fixnum] attr_accessor :target_name_servers_per_policy - # Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. + # # Corresponds to the JSON property `totalRrdataSizePerChange` # @return [Fixnum] attr_accessor :total_rrdata_size_per_change - # DNSSEC algorithm and key length types that can be used for DnsKeys. + # # Corresponds to the JSON property `whitelistedKeySpecs` # @return [Array] attr_accessor :whitelisted_key_specs @@ -1275,7 +1186,7 @@ module Google end end - # A unit of data that will be returned by the DNS servers. + # class ResourceRecordSet include Google::Apis::Core::Hashable @@ -1285,29 +1196,27 @@ module Google # @return [String] attr_accessor :kind - # For example, www.example.com. + # # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see - # examples. + # # Corresponds to the JSON property `rrdatas` # @return [Array] attr_accessor :rrdatas - # As defined in RFC 4034 (section 3.2). + # # Corresponds to the JSON property `signatureRrdatas` # @return [Array] attr_accessor :signature_rrdatas - # Number of seconds that this ResourceRecordSet can be cached by resolvers. + # # Corresponds to the JSON property `ttl` # @return [Fixnum] attr_accessor :ttl - # The identifier of a supported record type. See the list of Supported DNS - # record types. + # # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -1331,7 +1240,7 @@ module Google class ResourceRecordSetsListResponse include Google::Apis::Core::Hashable - # Elements common to every response. + # # Corresponds to the JSON property `header` # @return [Google::Apis::DnsV2beta1::ResponseHeader] attr_accessor :header @@ -1341,20 +1250,12 @@ module Google # @return [String] attr_accessor :kind - # The presence of this field indicates that there exist more results following - # your last page of results in pagination order. To fetch them, make another - # list request using this value as your pagination token. - # In this way you can retrieve the complete contents of even very large - # collections one page at a time. However, if the contents of the collection - # change between the first and last paginated list request, the set of all - # elements returned will be an inconsistent view of the collection. There is no - # way to retrieve a consistent snapshot of a collection larger than the maximum - # page size. + # # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token - # The resource record set resources. + # # Corresponds to the JSON property `rrsets` # @return [Array] attr_accessor :rrsets @@ -1372,13 +1273,11 @@ module Google end end - # Elements common to every response. + # class ResponseHeader include Google::Apis::Core::Hashable - # For mutating operation requests that completed successfully. This is the - # client_operation_id if the client specified it, otherwise it is generated by - # the server (output only). + # # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id diff --git a/generated/google/apis/dns_v2beta1/representations.rb b/generated/google/apis/dns_v2beta1/representations.rb index 2da957590..13d2dd94b 100644 --- a/generated/google/apis/dns_v2beta1/representations.rb +++ b/generated/google/apis/dns_v2beta1/representations.rb @@ -112,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManagedZoneReverseLookupConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ManagedZonesListResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -303,6 +309,8 @@ module Google property :private_visibility_config, as: 'privateVisibilityConfig', class: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig, decorator: Google::Apis::DnsV2beta1::ManagedZonePrivateVisibilityConfig::Representation + property :reverse_lookup_config, as: 'reverseLookupConfig', class: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig, decorator: Google::Apis::DnsV2beta1::ManagedZoneReverseLookupConfig::Representation + property :visibility, as: 'visibility' end end @@ -330,6 +338,7 @@ module Google class ManagedZoneForwardingConfigNameServerTarget # @private class Representation < Google::Apis::Core::JsonRepresentation + property :forwarding_path, as: 'forwardingPath' property :ipv4_address, as: 'ipv4Address' property :kind, as: 'kind' end @@ -382,6 +391,13 @@ module Google end end + class ManagedZoneReverseLookupConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + end + end + class ManagedZonesListResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -490,6 +506,7 @@ module Google class PolicyAlternativeNameServerConfigTargetNameServer # @private class Representation < Google::Apis::Core::JsonRepresentation + property :forwarding_path, as: 'forwardingPath' property :ipv4_address, as: 'ipv4Address' property :kind, as: 'kind' end diff --git a/generated/google/apis/dns_v2beta1/service.rb b/generated/google/apis/dns_v2beta1/service.rb index ab1875865..7e6624421 100644 --- a/generated/google/apis/dns_v2beta1/service.rb +++ b/generated/google/apis/dns_v2beta1/service.rb @@ -51,16 +51,11 @@ module Google @batch_path = 'batch/dns/v2beta1' end - # Atomically update the ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV2beta1::Change] change_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -95,18 +90,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Change. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] change_id - # The identifier of the requested change, from a previous - # ResourceRecordSetsChangeResponse. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -140,22 +128,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Changes to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported value is change sequence. # @param [String] sort_order - # Sorting order direction: 'ascending' or 'descending'. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -191,21 +170,12 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing DnsKey. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] dns_key_id - # The identifier of the requested DnsKey. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -240,22 +210,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate DnsKeys to a ResourceRecordSet collection. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] digest_type - # An optional comma-separated list of digest types to compute and display for - # key signing keys. If omitted, the recommended digest type will be computed and - # displayed. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -290,16 +250,11 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Operation. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [String] operation - # Identifies the operation addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -333,19 +288,12 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate Operations for the given ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] sort_by - # Sorting criterion. The only supported values are START_TIME and ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -380,13 +328,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -420,15 +365,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -459,15 +399,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -500,17 +435,11 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ManagedZones that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] dns_name - # Restricts the list to return only zones with this domain name. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -544,16 +473,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -588,16 +512,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing ManagedZone. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Google::Apis::DnsV2beta1::ManagedZone] managed_zone_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -632,13 +551,10 @@ module Google execute_or_queue_command(command, &block) end - # Create a new Policy + # # @param [String] project - # Identifies the project addressed by this request. # @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -672,15 +588,10 @@ module Google execute_or_queue_command(command, &block) end - # Delete a previously created Policy. Will fail if the policy is still being - # referenced by a network. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -711,14 +622,10 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -751,15 +658,10 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate all Policies associated with a project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -792,15 +694,11 @@ module Google execute_or_queue_command(command, &block) end - # Apply a partial update to an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -835,15 +733,11 @@ module Google execute_or_queue_command(command, &block) end - # Update an existing Policy. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] policy - # User given friendly name of the policy addressed by this request. # @param [Google::Apis::DnsV2beta1::Policy] policy_object # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -878,12 +772,9 @@ module Google execute_or_queue_command(command, &block) end - # Fetch the representation of an existing Project. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] client_operation_id - # For mutating operation requests only. An optional identifier specified by the - # client. Must be unique for operation resources in the Operations collection. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -915,24 +806,13 @@ module Google execute_or_queue_command(command, &block) end - # Enumerate ResourceRecordSets that have been created but not yet deleted. + # # @param [String] project - # Identifies the project addressed by this request. # @param [String] managed_zone - # Identifies the managed zone addressed by this request. Can be the managed zone - # name or id. # @param [Fixnum] max_results - # Optional. Maximum number of results to be returned. If unspecified, the server - # will decide how many results to return. # @param [String] name - # Restricts the list to return only records with this fully qualified domain - # name. # @param [String] page_token - # Optional. A tag returned by a previous list request that was truncated. Use - # this parameter to continue a previous list request. # @param [String] type - # Restricts the list to return only records of this type. If present, the "name" - # parameter must also be present. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index c458ee592..40766d836 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20200506' + REVISION = '20200515' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index 2bd57c476..5fc01479f 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -578,36 +578,6 @@ module Google # @return [String] attr_accessor :protocol - # Unimplemented. Do not use. - # The new name the selected proto elements should be renamed to. - # The package, the service and the method can all be renamed. - # The backend server should implement the renamed proto. However, clients - # should call the original method, and ESF routes the traffic to the renamed - # method. - # HTTP clients should call the URL mapped to the original method. - # gRPC and Stubby clients should call the original method with package name. - # For legacy reasons, ESF allows Stubby clients to call with the - # short name (without the package name). However, for API Versioning(or - # multiple methods mapped to the same short name), all Stubby clients must - # call the method's full name with the package name, otherwise the first one - # (selector) wins. - # If this `rename_to` is specified with a trailing `*`, the `selector` must - # be specified with a trailing `*` as well. The all element short names - # matched by the `*` in the selector will be kept in the `rename_to`. - # For example, - # rename_rules: - # - selector: |- - # google.example.library.v1.* - # rename_to: google.example.library.* - # The selector matches `google.example.library.v1.Library.CreateShelf` and - # `google.example.library.v1.Library.CreateBook`, they will be renamed to - # `google.example.library.Library.CreateShelf` and - # `google.example.library.Library.CreateBook`. It essentially renames the - # proto package name section of the matched proto service and methods. - # Corresponds to the JSON property `renameTo` - # @return [String] - attr_accessor :rename_to - # Selects the methods to which this rule applies. # Refer to selector for syntax details. # Corresponds to the JSON property `selector` @@ -628,7 +598,6 @@ module Google @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline) @path_translation = args[:path_translation] if args.key?(:path_translation) @protocol = args[:protocol] if args.key?(:protocol) - @rename_to = args[:rename_to] if args.key?(:rename_to) @selector = args[:selector] if args.key?(:selector) end end diff --git a/generated/google/apis/servicemanagement_v1/representations.rb b/generated/google/apis/servicemanagement_v1/representations.rb index 5ec848a64..51e411ed2 100644 --- a/generated/google/apis/servicemanagement_v1/representations.rb +++ b/generated/google/apis/servicemanagement_v1/representations.rb @@ -665,7 +665,6 @@ module Google property :operation_deadline, as: 'operationDeadline' property :path_translation, as: 'pathTranslation' property :protocol, as: 'protocol' - property :rename_to, as: 'renameTo' property :selector, as: 'selector' end end diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 7ce90520c..edd4ca1ba 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20200505' + REVISION = '20200519' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'