diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index bda174af2..5a906232b 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -604,7 +604,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/admin_reports_v1/classes.rb b/generated/google/apis/admin_reports_v1/classes.rb index ec407b073..61490b44b 100644 --- a/generated/google/apis/admin_reports_v1/classes.rb +++ b/generated/google/apis/admin_reports_v1/classes.rb @@ -340,7 +340,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index ba57cb3a9..16c92d731 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 = '20190430' + REVISION = '20190609' # 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 f18467739..0af33ed13 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -496,7 +496,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/cloudasset_v1.rb b/generated/google/apis/cloudasset_v1.rb index c0a82e704..fa95bd888 100644 --- a/generated/google/apis/cloudasset_v1.rb +++ b/generated/google/apis/cloudasset_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory module CloudassetV1 VERSION = 'V1' - REVISION = '20190615' + REVISION = '20190625' # 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/cloudasset_v1/classes.rb b/generated/google/apis/cloudasset_v1/classes.rb index 30cd2138c..843a72142 100644 --- a/generated/google/apis/cloudasset_v1/classes.rb +++ b/generated/google/apis/cloudasset_v1/classes.rb @@ -83,6 +83,13 @@ module Google # @return [String] attr_accessor :name + # Representation of the Cloud Organization Policy set on an asset. For each + # asset, there could be multiple Organization policies with different + # constraints. + # Corresponds to the JSON property `orgPolicy` + # @return [Array] + attr_accessor :org_policy + # Representation of a cloud resource. # Corresponds to the JSON property `resource` # @return [Google::Apis::CloudassetV1::Resource] @@ -97,6 +104,7 @@ module Google @asset_type = args[:asset_type] if args.key?(:asset_type) @iam_policy = args[:iam_policy] if args.key?(:iam_policy) @name = args[:name] if args.key?(:name) + @org_policy = args[:org_policy] if args.key?(:org_policy) @resource = args[:resource] if args.key?(:resource) end end @@ -415,6 +423,343 @@ module Google end end + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + class GoogleCloudOrgpolicyV1BooleanPolicy + include Google::Apis::Core::Hashable + + # If `true`, then the `Policy` is enforced. If `false`, then any + # configuration is acceptable. + # Suppose you have a `Constraint` + # `constraints/compute.disableSerialPortAccess` with `constraint_default` + # set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following + # behavior: + # - If the `Policy` at this resource has enforced set to `false`, serial + # port connection attempts will be allowed. + # - If the `Policy` at this resource has enforced set to `true`, serial + # port connection attempts will be refused. + # - If the `Policy` at this resource is `RestoreDefault`, serial port + # connection attempts will be allowed. + # - If no `Policy` is set at this resource or anywhere higher in the + # resource hierarchy, serial port connection attempts will be allowed. + # - If no `Policy` is set at this resource, but one exists higher in the + # resource hierarchy, the behavior is as if the`Policy` were set at + # this resource. + # The following examples demonstrate the different possible layerings: + # Example 1 (nearest `Constraint` wins): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has no `Policy` set. + # The constraint at `projects/bar` and `organizations/foo` will not be + # enforced. + # Example 2 (enforcement gets replaced): + # `organizations/foo` has a `Policy` with: + # `enforced: false` + # `projects/bar` has a `Policy` with: + # `enforced: true` + # The constraint at `organizations/foo` is not enforced. + # The constraint at `projects/bar` is enforced. + # Example 3 (RestoreDefault): + # `organizations/foo` has a `Policy` with: + # `enforced: true` + # `projects/bar` has a `Policy` with: + # `RestoreDefault: ``` + # The constraint at `organizations/foo` is enforced. + # The constraint at `projects/bar` is not enforced, because + # `constraint_default` for the `Constraint` is `ALLOW`. + # Corresponds to the JSON property `enforced` + # @return [Boolean] + attr_accessor :enforced + alias_method :enforced?, :enforced + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @enforced = args[:enforced] if args.key?(:enforced) + end + end + + # Used in `policy_type` to specify how `list_policy` behaves at this + # resource. + # `ListPolicy` can define specific values and subtrees of Cloud Resource + # Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that + # are allowed or denied by setting the `allowed_values` and `denied_values` + # fields. This is achieved by using the `under:` and optional `is:` prefixes. + # The `under:` prefix is used to denote resource subtree values. + # The `is:` prefix is used to denote specific values, and is required only + # if the value contains a ":". Values prefixed with "is:" are treated the + # same as values with no prefix. + # Ancestry subtrees must be in one of the following formats: + # - “projects/”, e.g. “projects/tokyo-rain-123” + # - “folders/”, e.g. “folders/1234” + # - “organizations/”, e.g. “organizations/1234” + # The `supports_under` field of the associated `Constraint` defines whether + # ancestry prefixes can be used. You can set `allowed_values` and + # `denied_values` in the same `Policy` if `all_values` is + # `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all + # values. If `all_values` is set to either `ALLOW` or `DENY`, + # `allowed_values` and `denied_values` must be unset. + class GoogleCloudOrgpolicyV1ListPolicy + include Google::Apis::Core::Hashable + + # The policy all_values state. + # Corresponds to the JSON property `allValues` + # @return [String] + attr_accessor :all_values + + # List of values allowed at this resource. Can only be set if `all_values` + # is set to `ALL_VALUES_UNSPECIFIED`. + # Corresponds to the JSON property `allowedValues` + # @return [Array] + attr_accessor :allowed_values + + # List of values denied at this resource. Can only be set if `all_values` + # is set to `ALL_VALUES_UNSPECIFIED`. + # Corresponds to the JSON property `deniedValues` + # @return [Array] + attr_accessor :denied_values + + # Determines the inheritance behavior for this `Policy`. + # By default, a `ListPolicy` set at a resource supercedes any `Policy` set + # anywhere up the resource hierarchy. However, if `inherit_from_parent` is + # set to `true`, then the values from the effective `Policy` of the parent + # resource are inherited, meaning the values set in this `Policy` are + # added to the values inherited up the hierarchy. + # Setting `Policy` hierarchies that inherit both allowed values and denied + # values isn't recommended in most circumstances to keep the configuration + # simple and understandable. However, it is possible to set a `Policy` with + # `allowed_values` set that inherits a `Policy` with `denied_values` set. + # In this case, the values that are allowed must be in `allowed_values` and + # not present in `denied_values`. + # For example, suppose you have a `Constraint` + # `constraints/serviceuser.services`, which has a `constraint_type` of + # `list_constraint`, and with `constraint_default` set to `ALLOW`. + # Suppose that at the Organization level, a `Policy` is applied that + # restricts the allowed API activations to ``E1`, `E2``. Then, if a + # `Policy` is applied to a project below the Organization that has + # `inherit_from_parent` set to `false` and field all_values set to DENY, + # then an attempt to activate any API will be denied. + # The following examples demonstrate different possible layerings for + # `projects/bar` parented by `organizations/foo`: + # Example 1 (no inherited values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: “E1” allowed_values:”E2”` + # `projects/bar` has `inherit_from_parent` `false` and values: + # `allowed_values: "E3" allowed_values: "E4"` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are `E3`, and `E4`. + # Example 2 (inherited values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: “E1” allowed_values:”E2”` + # `projects/bar` has a `Policy` with values: + # `value: “E3” value: ”E4” inherit_from_parent: true` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. + # Example 3 (inheriting both allowed and denied values): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "E1" allowed_values: "E2"` + # `projects/bar` has a `Policy` with: + # `denied_values: "E1"` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The value accepted at `projects/bar` is `E2`. + # Example 4 (RestoreDefault): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: “E1” allowed_values:”E2”` + # `projects/bar` has a `Policy` with values: + # `RestoreDefault: ``` + # The accepted values at `organizations/foo` are `E1`, `E2`. + # The accepted values at `projects/bar` are either all or none depending on + # the value of `constraint_default` (if `ALLOW`, all; if + # `DENY`, none). + # Example 5 (no policy inherits parent policy): + # `organizations/foo` has no `Policy` set. + # `projects/bar` has no `Policy` set. + # The accepted values at both levels are either all or none depending on + # the value of `constraint_default` (if `ALLOW`, all; if + # `DENY`, none). + # Example 6 (ListConstraint allowing all): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: “E1” allowed_values: ”E2”` + # `projects/bar` has a `Policy` with: + # `all: ALLOW` + # The accepted values at `organizations/foo` are `E1`, E2`. + # Any value is accepted at `projects/bar`. + # Example 7 (ListConstraint allowing none): + # `organizations/foo` has a `Policy` with values: + # `allowed_values: “E1” allowed_values: ”E2”` + # `projects/bar` has a `Policy` with: + # `all: DENY` + # The accepted values at `organizations/foo` are `E1`, E2`. + # No value is accepted at `projects/bar`. + # Example 10 (allowed and denied subtrees of Resource Manager hierarchy): + # Given the following resource hierarchy + # O1->`F1, F2`; F1->`P1`; F2->`P2, P3`, + # `organizations/foo` has a `Policy` with values: + # `allowed_values: "under:organizations/O1"` + # `projects/bar` has a `Policy` with: + # `allowed_values: "under:projects/P3"` + # `denied_values: "under:folders/F2"` + # The accepted values at `organizations/foo` are `organizations/O1`, + # `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`, + # `projects/P3`. + # The accepted values at `projects/bar` are `organizations/O1`, + # `folders/F1`, `projects/P1`. + # Corresponds to the JSON property `inheritFromParent` + # @return [Boolean] + attr_accessor :inherit_from_parent + alias_method :inherit_from_parent?, :inherit_from_parent + + # Optional. The Google Cloud Console will try to default to a configuration + # that matches the value specified in this `Policy`. If `suggested_value` + # is not set, it will inherit the value specified higher in the hierarchy, + # unless `inherit_from_parent` is `false`. + # Corresponds to the JSON property `suggestedValue` + # @return [String] + attr_accessor :suggested_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @all_values = args[:all_values] if args.key?(:all_values) + @allowed_values = args[:allowed_values] if args.key?(:allowed_values) + @denied_values = args[:denied_values] if args.key?(:denied_values) + @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent) + @suggested_value = args[:suggested_value] if args.key?(:suggested_value) + end + end + + # Defines a Cloud Organization `Policy` which is used to specify `Constraints` + # for configurations of Cloud Platform resources. + class GoogleCloudOrgpolicyV1Policy + include Google::Apis::Core::Hashable + + # Used in `policy_type` to specify how `boolean_policy` will behave at this + # resource. + # Corresponds to the JSON property `booleanPolicy` + # @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy] + attr_accessor :boolean_policy + + # The name of the `Constraint` the `Policy` is configuring, for example, + # `constraints/serviceuser.services`. + # Immutable after creation. + # Corresponds to the JSON property `constraint` + # @return [String] + attr_accessor :constraint + + # An opaque tag indicating the current version of the `Policy`, used for + # concurrency control. + # When the `Policy` is returned from either a `GetPolicy` or a + # `ListOrgPolicy` request, this `etag` indicates the version of the current + # `Policy` to use when executing a read-modify-write loop. + # When the `Policy` is returned from a `GetEffectivePolicy` request, the + # `etag` will be unset. + # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value + # that was returned from a `GetOrgPolicy` request as part of a + # read-modify-write loop for concurrency control. Not setting the `etag`in a + # `SetOrgPolicy` request will result in an unconditional write of the + # `Policy`. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Used in `policy_type` to specify how `list_policy` behaves at this + # resource. + # `ListPolicy` can define specific values and subtrees of Cloud Resource + # Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that + # are allowed or denied by setting the `allowed_values` and `denied_values` + # fields. This is achieved by using the `under:` and optional `is:` prefixes. + # The `under:` prefix is used to denote resource subtree values. + # The `is:` prefix is used to denote specific values, and is required only + # if the value contains a ":". Values prefixed with "is:" are treated the + # same as values with no prefix. + # Ancestry subtrees must be in one of the following formats: + # - “projects/”, e.g. “projects/tokyo-rain-123” + # - “folders/”, e.g. “folders/1234” + # - “organizations/”, e.g. “organizations/1234” + # The `supports_under` field of the associated `Constraint` defines whether + # ancestry prefixes can be used. You can set `allowed_values` and + # `denied_values` in the same `Policy` if `all_values` is + # `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all + # values. If `all_values` is set to either `ALLOW` or `DENY`, + # `allowed_values` and `denied_values` must be unset. + # Corresponds to the JSON property `listPolicy` + # @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy] + attr_accessor :list_policy + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + # Corresponds to the JSON property `restoreDefault` + # @return [Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault] + attr_accessor :restore_default + + # The time stamp the `Policy` was previously updated. This is set by the + # server, not specified by the caller, and represents the last time a call to + # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will + # be ignored. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Version of the `Policy`. Default version is 0; + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy) + @constraint = args[:constraint] if args.key?(:constraint) + @etag = args[:etag] if args.key?(:etag) + @list_policy = args[:list_policy] if args.key?(:list_policy) + @restore_default = args[:restore_default] if args.key?(:restore_default) + @update_time = args[:update_time] if args.key?(:update_time) + @version = args[:version] if args.key?(:version) + end + end + + # Ignores policies set above this resource and restores the + # `constraint_default` enforcement behavior of the specific `Constraint` at + # this resource. + # Suppose that `constraint_default` is set to `ALLOW` for the + # `Constraint` `constraints/serviceuser.services`. Suppose that organization + # foo.com sets a `Policy` at their Organization resource node that restricts + # the allowed service activations to deny all service activations. They + # could then set a `Policy` with the `policy_type` `restore_default` on + # several experimental projects, restoring the `constraint_default` + # enforcement of the `Constraint` for only those projects, allowing those + # projects to have all services activated. + class GoogleCloudOrgpolicyV1RestoreDefault + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google/apis/cloudasset_v1/representations.rb b/generated/google/apis/cloudasset_v1/representations.rb index 3eca8f503..bad5cca86 100644 --- a/generated/google/apis/cloudasset_v1/representations.rb +++ b/generated/google/apis/cloudasset_v1/representations.rb @@ -70,6 +70,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudOrgpolicyV1BooleanPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudOrgpolicyV1ListPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudOrgpolicyV1Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudOrgpolicyV1RestoreDefault + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -119,6 +143,8 @@ module Google property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation property :name, as: 'name' + collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1Policy::Representation + property :resource, as: 'resource', class: Google::Apis::CloudassetV1::Resource, decorator: Google::Apis::CloudassetV1::Resource::Representation end @@ -188,6 +214,46 @@ module Google end end + class GoogleCloudOrgpolicyV1BooleanPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :enforced, as: 'enforced' + end + end + + class GoogleCloudOrgpolicyV1ListPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :all_values, as: 'allValues' + collection :allowed_values, as: 'allowedValues' + collection :denied_values, as: 'deniedValues' + property :inherit_from_parent, as: 'inheritFromParent' + property :suggested_value, as: 'suggestedValue' + end + end + + class GoogleCloudOrgpolicyV1Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1BooleanPolicy::Representation + + property :constraint, as: 'constraint' + property :etag, :base64 => true, as: 'etag' + property :list_policy, as: 'listPolicy', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1ListPolicy::Representation + + property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault, decorator: Google::Apis::CloudassetV1::GoogleCloudOrgpolicyV1RestoreDefault::Representation + + property :update_time, as: 'updateTime' + property :version, as: 'version' + end + end + + class GoogleCloudOrgpolicyV1RestoreDefault + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 7179e308f..187c67cf9 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20190426' + REVISION = '20190626' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index c9ddf1db4..f71c7dfbf 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -322,7 +322,8 @@ module Google attr_accessor :purpose # next_rotation_time will be advanced by this period when the service - # automatically rotates a key. Must be at least one day. + # automatically rotates a key. Must be at least 24 hours and at most + # 876,000 hours. # If rotation_period is set, next_rotation_time must also be set. # Keys with purpose # ENCRYPT_DECRYPT support @@ -405,6 +406,26 @@ module Google # @return [String] attr_accessor :generate_time + # Output only. The root cause of an import failure. Only present if + # state is + # IMPORT_FAILED. + # Corresponds to the JSON property `importFailureReason` + # @return [String] + attr_accessor :import_failure_reason + + # Output only. The name of the ImportJob used to import this + # CryptoKeyVersion. Only present if the underlying key material was + # imported. + # Corresponds to the JSON property `importJob` + # @return [String] + attr_accessor :import_job + + # Output only. The time at which this CryptoKeyVersion's key material + # was imported. + # Corresponds to the JSON property `importTime` + # @return [String] + attr_accessor :import_time + # Output only. The resource name for this CryptoKeyVersion in the format # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # Corresponds to the JSON property `name` @@ -434,6 +455,9 @@ module Google @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time) @generate_time = args[:generate_time] if args.key?(:generate_time) + @import_failure_reason = args[:import_failure_reason] if args.key?(:import_failure_reason) + @import_job = args[:import_job] if args.key?(:import_job) + @import_time = args[:import_time] if args.key?(:import_time) @name = args[:name] if args.key?(:name) @protection_level = args[:protection_level] if args.key?(:protection_level) @state = args[:state] if args.key?(:state) @@ -682,6 +706,164 @@ module Google end end + # Request message for KeyManagementService.ImportCryptoKeyVersion. + class ImportCryptoKeyVersionRequest + include Google::Apis::Core::Hashable + + # Required. The algorithm of + # the key being imported. This does not need to match the + # version_template of the CryptoKey this + # version imports into. + # Corresponds to the JSON property `algorithm` + # @return [String] + attr_accessor :algorithm + + # Required. The name of the ImportJob that was used to + # wrap this key material. + # Corresponds to the JSON property `importJob` + # @return [String] + attr_accessor :import_job + + # Wrapped key material produced with + # RSA_OAEP_3072_SHA1_AES_256 + # or + # RSA_OAEP_4096_SHA1_AES_256. + # This field contains the concatenation of two wrapped keys: + #
    + #
  1. An ephemeral AES-256 wrapping key wrapped with the + # public_key using RSAES-OAEP with SHA-1, + # MGF1 with SHA-1, and an empty label. + #
  2. + #
  3. The key to be imported, wrapped with the ephemeral AES-256 key + # using AES-KWP (RFC 5649). + #
  4. + #
+ # This format is the same as the format produced by PKCS#11 mechanism + # CKM_RSA_AES_KEY_WRAP. + # Corresponds to the JSON property `rsaAesWrappedKey` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :rsa_aes_wrapped_key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @algorithm = args[:algorithm] if args.key?(:algorithm) + @import_job = args[:import_job] if args.key?(:import_job) + @rsa_aes_wrapped_key = args[:rsa_aes_wrapped_key] if args.key?(:rsa_aes_wrapped_key) + end + end + + # An ImportJob can be used to create CryptoKeys and + # CryptoKeyVersions using pre-existing key material, + # generated outside of Cloud KMS. + # When an ImportJob is created, Cloud KMS will generate a "wrapping key", + # which is a public/private key pair. You use the wrapping key to encrypt (also + # known as wrap) the pre-existing key material to protect it during the import + # process. The nature of the wrapping key depends on the choice of + # import_method. When the wrapping key generation + # is complete, the state will be set to + # ACTIVE and the public_key + # can be fetched. The fetched public key can then be used to wrap your + # pre-existing key material. + # Once the key material is wrapped, it can be imported into a new + # CryptoKeyVersion in an existing CryptoKey by calling + # ImportCryptoKeyVersion. + # Multiple CryptoKeyVersions can be imported with a single + # ImportJob. Cloud KMS uses the private key portion of the wrapping key to + # unwrap the key material. Only Cloud KMS has access to the private key. + # An ImportJob expires 3 days after it is created. Once expired, Cloud KMS + # will no longer be able to import or unwrap any key material that was wrapped + # with the ImportJob's public key. + # For more information, see + # [Importing a key](https://cloud.google.com/kms/docs/importing-a-key). + class ImportJob + include Google::Apis::Core::Hashable + + # Contains an HSM-generated attestation about a key operation. For more + # information, see [Verifying attestations] + # (https://cloud.google.com/kms/docs/attest-key). + # Corresponds to the JSON property `attestation` + # @return [Google::Apis::CloudkmsV1::KeyOperationAttestation] + attr_accessor :attestation + + # Output only. The time at which this ImportJob was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The time this ImportJob expired. Only present if + # state is EXPIRED. + # Corresponds to the JSON property `expireEventTime` + # @return [String] + attr_accessor :expire_event_time + + # Output only. The time at which this ImportJob is scheduled for + # expiration and can no longer be used to import key material. + # Corresponds to the JSON property `expireTime` + # @return [String] + attr_accessor :expire_time + + # Output only. The time this ImportJob's key material was generated. + # Corresponds to the JSON property `generateTime` + # @return [String] + attr_accessor :generate_time + + # Required and immutable. The wrapping method to be used for incoming + # key material. + # Corresponds to the JSON property `importMethod` + # @return [String] + attr_accessor :import_method + + # Output only. The resource name for this ImportJob in the format + # `projects/*/locations/*/keyRings/*/importJobs/*`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required and immutable. The protection level of the ImportJob. This + # must match the + # protection_level of the + # version_template on the CryptoKey you + # attempt to import into. + # Corresponds to the JSON property `protectionLevel` + # @return [String] + attr_accessor :protection_level + + # The public key component of the wrapping key. For details of the type of + # key this public key corresponds to, see the ImportMethod. + # Corresponds to the JSON property `publicKey` + # @return [Google::Apis::CloudkmsV1::WrappingPublicKey] + attr_accessor :public_key + + # Output only. The current state of the ImportJob, indicating if it can + # be used. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @attestation = args[:attestation] if args.key?(:attestation) + @create_time = args[:create_time] if args.key?(:create_time) + @expire_event_time = args[:expire_event_time] if args.key?(:expire_event_time) + @expire_time = args[:expire_time] if args.key?(:expire_time) + @generate_time = args[:generate_time] if args.key?(:generate_time) + @import_method = args[:import_method] if args.key?(:import_method) + @name = args[:name] if args.key?(:name) + @protection_level = args[:protection_level] if args.key?(:protection_level) + @public_key = args[:public_key] if args.key?(:public_key) + @state = args[:state] if args.key?(:state) + end + end + # Contains an HSM-generated attestation about a key operation. For more # information, see [Verifying attestations] # (https://cloud.google.com/kms/docs/attest-key). @@ -803,6 +985,38 @@ module Google end end + # Response message for KeyManagementService.ListImportJobs. + class ListImportJobsResponse + include Google::Apis::Core::Hashable + + # The list of ImportJobs. + # Corresponds to the JSON property `importJobs` + # @return [Array] + attr_accessor :import_jobs + + # A token to retrieve next page of results. Pass this value in + # ListImportJobsRequest.page_token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The total number of ImportJobs that matched the query. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @import_jobs = args[:import_jobs] if args.key?(:import_jobs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_size = args[:total_size] if args.key?(:total_size) + end + end + # Response message for KeyManagementService.ListKeyRings. class ListKeyRingsResponse include Google::Apis::Core::Hashable @@ -1181,6 +1395,30 @@ module Google @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id) end end + + # The public key component of the wrapping key. For details of the type of + # key this public key corresponds to, see the ImportMethod. + class WrappingPublicKey + include Google::Apis::Core::Hashable + + # The public key, encoded in PEM format. For more information, see the [RFC + # 7468](https://tools.ietf.org/html/rfc7468) sections for [General + # Considerations](https://tools.ietf.org/html/rfc7468#section-2) and + # [Textual Encoding of Subject Public Key Info] + # (https://tools.ietf.org/html/rfc7468#section-13). + # Corresponds to the JSON property `pem` + # @return [String] + attr_accessor :pem + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @pem = args[:pem] if args.key?(:pem) + end + end end end end diff --git a/generated/google/apis/cloudkms_v1/representations.rb b/generated/google/apis/cloudkms_v1/representations.rb index cb6221daf..b75e7314c 100644 --- a/generated/google/apis/cloudkms_v1/representations.rb +++ b/generated/google/apis/cloudkms_v1/representations.rb @@ -124,6 +124,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImportCryptoKeyVersionRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ImportJob + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class KeyOperationAttestation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListImportJobsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListKeyRingsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -214,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WrappingPublicKey + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AsymmetricDecryptRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -296,6 +320,9 @@ module Google property :destroy_event_time, as: 'destroyEventTime' property :destroy_time, as: 'destroyTime' property :generate_time, as: 'generateTime' + property :import_failure_reason, as: 'importFailureReason' + property :import_job, as: 'importJob' + property :import_time, as: 'importTime' property :name, as: 'name' property :protection_level, as: 'protectionLevel' property :state, as: 'state' @@ -366,6 +393,33 @@ module Google end end + class ImportCryptoKeyVersionRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :algorithm, as: 'algorithm' + property :import_job, as: 'importJob' + property :rsa_aes_wrapped_key, :base64 => true, as: 'rsaAesWrappedKey' + end + end + + class ImportJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :attestation, as: 'attestation', class: Google::Apis::CloudkmsV1::KeyOperationAttestation, decorator: Google::Apis::CloudkmsV1::KeyOperationAttestation::Representation + + property :create_time, as: 'createTime' + property :expire_event_time, as: 'expireEventTime' + property :expire_time, as: 'expireTime' + property :generate_time, as: 'generateTime' + property :import_method, as: 'importMethod' + property :name, as: 'name' + property :protection_level, as: 'protectionLevel' + property :public_key, as: 'publicKey', class: Google::Apis::CloudkmsV1::WrappingPublicKey, decorator: Google::Apis::CloudkmsV1::WrappingPublicKey::Representation + + property :state, as: 'state' + end + end + class KeyOperationAttestation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -402,6 +456,16 @@ module Google end end + class ListImportJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :import_jobs, as: 'importJobs', class: Google::Apis::CloudkmsV1::ImportJob, decorator: Google::Apis::CloudkmsV1::ImportJob::Representation + + property :next_page_token, as: 'nextPageToken' + property :total_size, as: 'totalSize' + end + end + class ListKeyRingsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -494,6 +558,13 @@ module Google property :crypto_key_version_id, as: 'cryptoKeyVersionId' end end + + class WrappingPublicKey + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :pem, as: 'pem' + end + end end end end diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 5e9af2036..c17bed9d0 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -191,6 +191,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -208,11 +213,12 @@ 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_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_key_ring_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation command.response_class = Google::Apis::CloudkmsV1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -222,6 +228,13 @@ module Google # @param [String] parent # Required. The resource name of the location associated with the # KeyRings, in the format `projects/*/locations/*`. + # @param [String] filter + # Optional. Only include resources that match the filter in the response + # (https://cloud.google.com/kms/docs/sorting-and-filtering). + # @param [String] order_by + # Optional. Specify how the results should be sorted. If not specified, the + # results will be sorted in the default order + # (https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size # Optional limit on the number of KeyRings to include in the # response. Further KeyRings can subsequently be obtained by @@ -247,11 +260,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 list_project_location_key_rings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_rings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/keyRings', options) command.response_representation = Google::Apis::CloudkmsV1::ListKeyRingsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListKeyRingsResponse command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -344,6 +359,12 @@ module Google # @param [String] crypto_key_id # Required. It must be unique within a KeyRing and match the regular # expression `[a-zA-Z0-9_-]`1,63`` + # @param [Boolean] skip_initial_version_creation + # If set to true, the request will create a CryptoKey without any + # CryptoKeyVersions. You must manually call + # CreateCryptoKeyVersion or + # ImportCryptoKeyVersion + # before you can use this CryptoKey. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -361,7 +382,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 create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, skip_initial_version_creation: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options) command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation command.request_object = crypto_key_object @@ -369,6 +390,7 @@ module Google command.response_class = Google::Apis::CloudkmsV1::CryptoKey command.params['parent'] = parent unless parent.nil? command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil? + command.query['skipInitialVersionCreation'] = skip_initial_version_creation unless skip_initial_version_creation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -484,6 +506,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -501,11 +528,12 @@ 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_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_key_ring_crypto_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation command.response_class = Google::Apis::CloudkmsV1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -515,6 +543,13 @@ module Google # @param [String] parent # Required. The resource name of the KeyRing to list, in the format # `projects/*/locations/*/keyRings/*`. + # @param [String] filter + # Optional. Only include resources that match the filter in the response + # (https://cloud.google.com/kms/docs/sorting-and-filtering). + # @param [String] order_by + # Optional. Specify how the results should be sorted. If not specified, the + # results will be sorted in the default order + # (https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size # Optional limit on the number of CryptoKeys to include in the # response. Further CryptoKeys can subsequently be obtained by @@ -542,11 +577,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 list_project_location_key_ring_crypto_keys(parent, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_ring_crypto_keys(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, version_view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options) command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['versionView'] = version_view unless version_view.nil? @@ -914,10 +951,54 @@ module Google execute_or_queue_command(command, &block) end + # Imports a new CryptoKeyVersion into an existing CryptoKey using the + # wrapped key material provided in the request. + # The version ID will be assigned the next sequential id within the + # CryptoKey. + # @param [String] parent + # Required. The name of the CryptoKey to + # be imported into. + # @param [Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest] import_crypto_key_version_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKeyVersion] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] + # + # @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 import_crypto_key_version(parent, import_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions:import', options) + command.request_representation = Google::Apis::CloudkmsV1::ImportCryptoKeyVersionRequest::Representation + command.request_object = import_crypto_key_version_request_object + command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation + command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists CryptoKeyVersions. # @param [String] parent # Required. The resource name of the CryptoKey to list, in the format # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + # @param [String] filter + # Optional. Only include resources that match the filter in the response + # (https://cloud.google.com/kms/docs/sorting-and-filtering). + # @param [String] order_by + # Optional. Specify how the results should be sorted. If not specified, the + # results will be sorted in the default order + # (https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size # Optional limit on the number of CryptoKeyVersions to # include in the response. Further CryptoKeyVersions can @@ -946,11 +1027,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 list_project_location_key_ring_crypto_key_crypto_key_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_key_ring_crypto_key_crypto_key_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/cryptoKeyVersions', options) command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse::Representation command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeyVersionsResponse command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? @@ -1039,12 +1122,86 @@ module Google execute_or_queue_command(command, &block) end + # Create a new ImportJob within a KeyRing. + # ImportJob.import_method is required. + # @param [String] parent + # Required. The name of the KeyRing associated with the + # ImportJobs. + # @param [Google::Apis::CloudkmsV1::ImportJob] import_job_object + # @param [String] import_job_id + # Required. It must be unique within a KeyRing and match the regular + # expression `[a-zA-Z0-9_-]`1,63`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudkmsV1::ImportJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ImportJob] + # + # @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 create_project_location_key_ring_import_job(parent, import_job_object = nil, import_job_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/importJobs', options) + command.request_representation = Google::Apis::CloudkmsV1::ImportJob::Representation + command.request_object = import_job_object + command.response_representation = Google::Apis::CloudkmsV1::ImportJob::Representation + command.response_class = Google::Apis::CloudkmsV1::ImportJob + command.params['parent'] = parent unless parent.nil? + command.query['importJobId'] = import_job_id unless import_job_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns metadata for a given ImportJob. + # @param [String] name + # The name of the ImportJob to get. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudkmsV1::ImportJob] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ImportJob] + # + # @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_project_location_key_ring_import_job(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudkmsV1::ImportJob::Representation + command.response_class = Google::Apis::CloudkmsV1::ImportJob + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the access control policy for a resource. # Returns an empty policy if the resource exists and does not have a policy # set. # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1062,11 +1219,62 @@ 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_project_location_key_ring_import_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_key_ring_import_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation command.response_class = Google::Apis::CloudkmsV1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? + execute_or_queue_command(command, &block) + end + + # Lists ImportJobs. + # @param [String] parent + # Required. The resource name of the KeyRing to list, in the format + # `projects/*/locations/*/keyRings/*`. + # @param [String] filter + # Optional. Only include resources that match the filter in the response + # (https://cloud.google.com/kms/docs/sorting-and-filtering). + # @param [String] order_by + # Optional. Specify how the results should be sorted. If not specified, the + # results will be sorted in the default order + # (https://cloud.google.com/kms/docs/sorting-and-filtering). + # @param [Fixnum] page_size + # Optional limit on the number of ImportJobs to include in the + # response. Further ImportJobs can subsequently be obtained by + # including the ListImportJobsResponse.next_page_token in a subsequent + # request. If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # Optional pagination token, returned earlier via + # ListImportJobsResponse.next_page_token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudkmsV1::ListImportJobsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudkmsV1::ListImportJobsResponse] + # + # @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_project_location_key_ring_import_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/importJobs', options) + command.response_representation = Google::Apis::CloudkmsV1::ListImportJobsResponse::Representation + command.response_class = Google::Apis::CloudkmsV1::ListImportJobsResponse + command.params['parent'] = parent unless parent.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/doubleclickbidmanager_v1.rb b/generated/google/apis/doubleclickbidmanager_v1.rb index 4935d2f77..ff7f7ee34 100644 --- a/generated/google/apis/doubleclickbidmanager_v1.rb +++ b/generated/google/apis/doubleclickbidmanager_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/bid-manager/ module DoubleclickbidmanagerV1 VERSION = 'V1' - REVISION = '20190617' + REVISION = '20190618' # View and manage your reports in DoubleClick Bid Manager AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index 635384df3..d0561cc23 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -885,7 +885,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index 33e5e0a3d..ecf65d1d4 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -363,7 +363,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/healthcare_v1alpha2.rb b/generated/google/apis/healthcare_v1alpha2.rb index c0f9d0106..27f4c9b63 100644 --- a/generated/google/apis/healthcare_v1alpha2.rb +++ b/generated/google/apis/healthcare_v1alpha2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1alpha2 VERSION = 'V1alpha2' - REVISION = '20190615' + REVISION = '20190626' # 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/healthcare_v1alpha2/classes.rb b/generated/google/apis/healthcare_v1alpha2/classes.rb index 5d69dd44b..833febaf9 100644 --- a/generated/google/apis/healthcare_v1alpha2/classes.rb +++ b/generated/google/apis/healthcare_v1alpha2/classes.rb @@ -1037,12 +1037,40 @@ module Google class GetIamPolicyRequest include Google::Apis::Core::Hashable + # Encapsulates settings provided to GetIamPolicy. + # Corresponds to the JSON property `options` + # @return [Google::Apis::HealthcareV1alpha2::GetPolicyOptions] + attr_accessor :options + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @options = args[:options] if args.key?(:options) + end + end + + # Encapsulates settings provided to GetIamPolicy. + class GetPolicyOptions + include Google::Apis::Core::Hashable + + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. + # Corresponds to the JSON property `requestedPolicyVersion` + # @return [Fixnum] + attr_accessor :requested_policy_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version) end end diff --git a/generated/google/apis/healthcare_v1alpha2/representations.rb b/generated/google/apis/healthcare_v1alpha2/representations.rb index b088e2ebf..d45e94736 100644 --- a/generated/google/apis/healthcare_v1alpha2/representations.rb +++ b/generated/google/apis/healthcare_v1alpha2/representations.rb @@ -202,6 +202,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetPolicyOptions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1alpha2DicomBigQueryDestination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -796,6 +802,15 @@ module Google class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :options, as: 'options', class: Google::Apis::HealthcareV1alpha2::GetPolicyOptions, decorator: Google::Apis::HealthcareV1alpha2::GetPolicyOptions::Representation + + end + end + + class GetPolicyOptions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :requested_policy_version, as: 'requestedPolicyVersion' end end diff --git a/generated/google/apis/healthcare_v1alpha2/service.rb b/generated/google/apis/healthcare_v1alpha2/service.rb index 00461b051..77db836ce 100644 --- a/generated/google/apis/healthcare_v1alpha2/service.rb +++ b/generated/google/apis/healthcare_v1alpha2/service.rb @@ -272,6 +272,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -289,11 +294,12 @@ 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_project_location_dataset_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation command.response_class = Google::Apis::HealthcareV1alpha2::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -1072,6 +1078,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1089,11 +1100,12 @@ 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_project_location_dataset_dicom_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_dicom_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation command.response_class = Google::Apis::HealthcareV1alpha2::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -2249,6 +2261,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2266,11 +2283,12 @@ 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_project_location_dataset_fhir_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_fhir_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation command.response_class = Google::Apis::HealthcareV1alpha2::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -3285,6 +3303,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3302,11 +3325,12 @@ 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_project_location_dataset_fhir_store_security_label_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_fhir_store_security_label_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation command.response_class = Google::Apis::HealthcareV1alpha2::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -3454,6 +3478,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3471,11 +3500,12 @@ 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_project_location_dataset_hl7_v2_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_hl7_v2_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1alpha2::Policy::Representation command.response_class = Google::Apis::HealthcareV1alpha2::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index fa182abda..0f39ce885 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20190615' + REVISION = '20190626' # 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/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 1f1a521cb..0112ffb3d 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -272,6 +272,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -289,11 +294,12 @@ 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_project_location_dataset_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation command.response_class = Google::Apis::HealthcareV1beta1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -593,6 +599,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -610,11 +621,12 @@ 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_project_location_dataset_dicom_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_dicom_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation command.response_class = Google::Apis::HealthcareV1beta1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -1728,6 +1740,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1745,11 +1762,12 @@ 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_project_location_dataset_fhir_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_fhir_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation command.response_class = Google::Apis::HealthcareV1beta1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) @@ -2858,6 +2876,11 @@ module Google # @param [String] resource # REQUIRED: The resource for which the policy is being requested. # See the operation documentation for the appropriate value for this field. + # @param [Fixnum] options_requested_policy_version + # Optional. The policy format version to be returned. + # Acceptable values are 0 and 1. + # If the value is 0, or the field is omitted, policy format version 1 will be + # returned. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2875,11 +2898,12 @@ 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_project_location_dataset_hl7_v2_store_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + def get_project_location_dataset_hl7_v2_store_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation command.response_class = Google::Apis::HealthcareV1beta1::Policy command.params['resource'] = resource unless resource.nil? + command.query['options.requestedPolicyVersion'] = 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? execute_or_queue_command(command, &block) diff --git a/generated/google/apis/monitoring_v3.rb b/generated/google/apis/monitoring_v3.rb index d15c45a57..04ca8e2ab 100644 --- a/generated/google/apis/monitoring_v3.rb +++ b/generated/google/apis/monitoring_v3.rb @@ -30,7 +30,7 @@ module Google # @see https://cloud.google.com/monitoring/api/ module MonitoringV3 VERSION = 'V3' - REVISION = '20190613' + REVISION = '20190622' # 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/monitoring_v3/classes.rb b/generated/google/apis/monitoring_v3/classes.rb index f764309de..86f4a4449 100644 --- a/generated/google/apis/monitoring_v3/classes.rb +++ b/generated/google/apis/monitoring_v3/classes.rb @@ -2286,12 +2286,21 @@ module Google class Point include Google::Apis::Core::Hashable - # A time interval extending just after a start time through an end time. The - # start time must not be later than the end time. The default start time is the - # end time, making the startTime value technically optional. Whether this is - # useful depends on the MetricKind. If the start and end times are the same, the - # interval represents a point in time. This is appropriate for GAUGE metrics, - # but not for DELTA and CUMULATIVE metrics, which cover a span of time. + # A closed time interval. It extends from the start time to the end time, and + # includes both: [startTime, endTime]. Valid time intervals depend on the + # MetricKind of the metric value. In no case can the end time be earlier than + # the start time. + # For a GAUGE metric, the startTime value is technically optional; if no value + # is specified, the start time defaults to the value of the end time, and the + # interval represents a single point in time. Such an interval is valid only + # for GAUGE metrics, which are point-in-time measurements. + # For DELTA and CUMULATIVE metrics, the start time must be later than the end + # time. + # In all cases, the start time of the next interval must be at least a + # microsecond after the end time of the previous interval. Because the interval + # is closed, if the start time of a new interval is the same as the end time of + # the previous interval, data written at the new start time could overwrite + # data written at the previous end time. # Corresponds to the JSON property `interval` # @return [Google::Apis::MonitoringV3::TimeInterval] attr_accessor :interval @@ -2483,12 +2492,21 @@ module Google end end - # A time interval extending just after a start time through an end time. The - # start time must not be later than the end time. The default start time is the - # end time, making the startTime value technically optional. Whether this is - # useful depends on the MetricKind. If the start and end times are the same, the - # interval represents a point in time. This is appropriate for GAUGE metrics, - # but not for DELTA and CUMULATIVE metrics, which cover a span of time. + # A closed time interval. It extends from the start time to the end time, and + # includes both: [startTime, endTime]. Valid time intervals depend on the + # MetricKind of the metric value. In no case can the end time be earlier than + # the start time. + # For a GAUGE metric, the startTime value is technically optional; if no value + # is specified, the start time defaults to the value of the end time, and the + # interval represents a single point in time. Such an interval is valid only + # for GAUGE metrics, which are point-in-time measurements. + # For DELTA and CUMULATIVE metrics, the start time must be later than the end + # time. + # In all cases, the start time of the next interval must be at least a + # microsecond after the end time of the previous interval. Because the interval + # is closed, if the start time of a new interval is the same as the end time of + # the previous interval, data written at the new start time could overwrite + # data written at the previous end time. class TimeInterval include Google::Apis::Core::Hashable diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index dbdc3ac0a..9551ac4b0 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20190606' + REVISION = '20190619' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 4ef12e6de..09620f545 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -352,12 +352,11 @@ module Google class MessageStoragePolicy include Google::Apis::Core::Hashable - # The list of GCP region IDs where messages that are published to the topic + # A list of IDs of GCP regions where messages that are published to the topic # may be persisted in storage. Messages published by publishers running in # non-allowed GCP regions (or running outside of GCP altogether) will be - # routed for storage in one of the allowed regions. An empty list indicates a - # misconfiguration at the project or organization level, which will result in - # all Publish operations failing. + # routed for storage in one of the allowed regions. An empty list means that + # no regions are allowed, and is not a valid configuration. # Corresponds to the JSON property `allowedPersistenceRegions` # @return [Array] attr_accessor :allowed_persistence_regions @@ -1075,12 +1074,9 @@ module Google # @return [Hash] attr_accessor :labels - # Policy constraining how messages published to the topic may be stored. It - # is determined when the topic is created based on the policy configured at - # the project level. It must not be set by the caller in the request to - # CreateTopic or to UpdateTopic. This field will be populated in the - # responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the - # response, then no constraints are in effect. + # Policy constraining the set of Google Cloud Platform regions where messages + # published to the topic may be stored. If not present, then no constraints + # are in effect. # Corresponds to the JSON property `messageStoragePolicy` # @return [Google::Apis::PubsubV1::MessageStoragePolicy] attr_accessor :message_storage_policy diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index d441c660b..0eb365443 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -828,7 +828,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind diff --git a/generated/google/apis/storage_v1beta2.rb b/generated/google/apis/storage_v1beta2.rb index 74d351513..e0a016464 100644 --- a/generated/google/apis/storage_v1beta2.rb +++ b/generated/google/apis/storage_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta2 VERSION = 'V1beta2' - REVISION = '20180905' + REVISION = '20190620' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1beta2/classes.rb b/generated/google/apis/storage_v1beta2/classes.rb index a3a3cc732..1ee37f2b6 100644 --- a/generated/google/apis/storage_v1beta2/classes.rb +++ b/generated/google/apis/storage_v1beta2/classes.rb @@ -556,7 +556,7 @@ module Google attr_accessor :id # Identifies this as a notification channel used to watch for changes to a - # resource. Value: the fixed string "api#channel". + # resource, which is "api#channel". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind