diff --git a/api_names_out.yaml b/api_names_out.yaml index 9625b365f..6a800034d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -25030,6 +25030,16 @@ "/cloudresourcemanager:v2/Binding/members": members "/cloudresourcemanager:v2/Binding/members/member": member "/cloudresourcemanager:v2/Binding/role": role +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation": cloudresourcemanager_google_cloud_resourcemanager_v2alpha1_folder_operation +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation/destinationParent": destination_parent +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation/displayName": display_name +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation/operationType": operation_type +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation/sourceParent": source_parent +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation": cloudresourcemanager_google_cloud_resourcemanager_v2beta1_folder_operation +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation/destinationParent": destination_parent +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation/displayName": display_name +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation/operationType": operation_type +"/cloudresourcemanager:v2/CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation/sourceParent": source_parent "/cloudresourcemanager:v2/Expr": expr "/cloudresourcemanager:v2/Expr/description": description "/cloudresourcemanager:v2/Expr/expression": expression diff --git a/generated/google/apis/cloudresourcemanager_v2.rb b/generated/google/apis/cloudresourcemanager_v2.rb index bcdff2107..bde90d400 100644 --- a/generated/google/apis/cloudresourcemanager_v2.rb +++ b/generated/google/apis/cloudresourcemanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/resource-manager module CloudresourcemanagerV2 VERSION = 'V2' - REVISION = '20201019' + REVISION = '20201027' # 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/cloudresourcemanager_v2/classes.rb b/generated/google/apis/cloudresourcemanager_v2/classes.rb index 0b2ed53ab..f601d5abe 100644 --- a/generated/google/apis/cloudresourcemanager_v2/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v2/classes.rb @@ -97,8 +97,7 @@ module Google class Binding include Google::Apis::Core::Hashable - # A client-specified ID for this binding. Expected to be globally unique to - # support the internal bindings-by-ID API. + # # Corresponds to the JSON property `bindingId` # @return [String] attr_accessor :binding_id @@ -171,6 +170,84 @@ module Google end end + # Metadata describing a long running folder operation + class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + include Google::Apis::Core::Hashable + + # The resource name of the folder or organization we are either creating the + # folder under or moving the folder to. + # Corresponds to the JSON property `destinationParent` + # @return [String] + attr_accessor :destination_parent + + # The display name of the folder. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The type of this operation. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The resource name of the folder's parent. Only applicable when the + # operation_type is MOVE. + # Corresponds to the JSON property `sourceParent` + # @return [String] + attr_accessor :source_parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_parent = args[:destination_parent] if args.key?(:destination_parent) + @display_name = args[:display_name] if args.key?(:display_name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @source_parent = args[:source_parent] if args.key?(:source_parent) + end + end + + # Metadata describing a long running folder operation + class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + include Google::Apis::Core::Hashable + + # The resource name of the folder or organization we are either creating the + # folder under or moving the folder to. + # Corresponds to the JSON property `destinationParent` + # @return [String] + attr_accessor :destination_parent + + # The display name of the folder. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The type of this operation. + # Corresponds to the JSON property `operationType` + # @return [String] + attr_accessor :operation_type + + # The resource name of the folder's parent. Only applicable when the + # operation_type is MOVE. + # Corresponds to the JSON property `sourceParent` + # @return [String] + attr_accessor :source_parent + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_parent = args[:destination_parent] if args.key?(:destination_parent) + @display_name = args[:display_name] if args.key?(:display_name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @source_parent = args[:source_parent] if args.key?(:source_parent) + end + end + # 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: @@ -235,12 +312,12 @@ module Google # @return [String] attr_accessor :create_time - # The folder’s display name. A folder’s display name must be unique amongst its + # The folder's display name. A folder's display name must be unique amongst its # siblings, e.g. no two folders with the same parent can share the same display # name. The display name must start and end with a letter or digit, may contain # letters, digits, spaces, hyphens and underscores and can be no longer than 30 - # characters. This is captured by the regular expression: [\p`L`\p`N`]([\p`L`\p` - # N`_- ]`0,28`[\p`L`\p`N`])?. + # characters. This is captured by the regular expression: `[\p`L`\p`N`]([\p`L`\p` + # N`_- ]`0,28`[\p`L`\p`N`])?`. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name @@ -257,7 +334,7 @@ module Google # @return [String] attr_accessor :name - # Required. The Folder’s parent's resource name. Updates to the folder's parent + # Required. The Folder's parent's resource name. Updates to the folder's parent # must be performed via MoveFolder. # Corresponds to the JSON property `parent` # @return [String] diff --git a/generated/google/apis/cloudresourcemanager_v2/representations.rb b/generated/google/apis/cloudresourcemanager_v2/representations.rb index 2916f097e..bffe805a6 100644 --- a/generated/google/apis/cloudresourcemanager_v2/representations.rb +++ b/generated/google/apis/cloudresourcemanager_v2/representations.rb @@ -40,6 +40,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end @@ -176,6 +188,26 @@ module Google end end + class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_parent, as: 'destinationParent' + property :display_name, as: 'displayName' + property :operation_type, as: 'operationType' + property :source_parent, as: 'sourceParent' + end + end + + class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_parent, as: 'destinationParent' + property :display_name, as: 'displayName' + property :operation_type, as: 'operationType' + property :source_parent, as: 'sourceParent' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/cloudresourcemanager_v2/service.rb b/generated/google/apis/cloudresourcemanager_v2/service.rb index 9f619fe3e..06e3d3c3c 100644 --- a/generated/google/apis/cloudresourcemanager_v2/service.rb +++ b/generated/google/apis/cloudresourcemanager_v2/service.rb @@ -53,7 +53,7 @@ module Google # Operation.response field will be populated with the created Folder. In order # to succeed, the addition of this new Folder must not violate the Folder naming, # height or fanout constraints. + The Folder's display_name must be distinct - # from all other Folder's that share its parent. + The addition of the Folder + # from all other Folders that share its parent. + The addition of the Folder # must not cause the active Folder hierarchy to exceed a height of 10. Note, the # full active + deleted Folder hierarchy is allowed to reach a height of 20; # this provides additional headroom when moving folders that contain deleted @@ -302,8 +302,8 @@ module Google # formatting rules or naming constraints described in the CreateFolder # documentation. The Folder's display name must start and end with a letter or # digit, may contain letters, digits, spaces, hyphens and underscores and can be - # no longer than 30 characters. This is captured by the regular expression: [\p` - # L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?. The caller must have ` + # no longer than 30 characters. This is captured by the regular expression: `[\p` + # L`\p`N`]([\p`L`\p`N`_- ]`0,28`[\p`L`\p`N`])?`. The caller must have ` # resourcemanager.folders.update` permission on the identified folder. If the # update fails due to the unique name constraint then a PreconditionFailure # explaining this violation will be returned in the Status.details field. diff --git a/generated/google/apis/cloudresourcemanager_v2/synth.metadata b/generated/google/apis/cloudresourcemanager_v2/synth.metadata index 8ba18e27d..bfdcc4715 100644 --- a/generated/google/apis/cloudresourcemanager_v2/synth.metadata +++ b/generated/google/apis/cloudresourcemanager_v2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "cb0c5bf94e2b1c915107eec83041d4409c900155" + "sha": "14885a31971894de4c45841c7b2623b8e6d8e748" } } ]