diff --git a/api_names_out.yaml b/api_names_out.yaml index fb42278b6..77232063e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -14298,6 +14298,10 @@ "/area120tables:v1alpha1/ListTablesResponse/nextPageToken": next_page_token "/area120tables:v1alpha1/ListTablesResponse/tables": tables "/area120tables:v1alpha1/ListTablesResponse/tables/table": table +"/area120tables:v1alpha1/ListWorkspacesResponse": list_workspaces_response +"/area120tables:v1alpha1/ListWorkspacesResponse/nextPageToken": next_page_token +"/area120tables:v1alpha1/ListWorkspacesResponse/workspaces": workspaces +"/area120tables:v1alpha1/ListWorkspacesResponse/workspaces/workspace": workspace "/area120tables:v1alpha1/LookupDetails": lookup_details "/area120tables:v1alpha1/LookupDetails/relationshipColumn": relationship_column "/area120tables:v1alpha1/LookupDetails/relationshipColumnId": relationship_column_id @@ -14316,6 +14320,11 @@ "/area120tables:v1alpha1/UpdateRowRequest/row": row "/area120tables:v1alpha1/UpdateRowRequest/updateMask": update_mask "/area120tables:v1alpha1/UpdateRowRequest/view": view +"/area120tables:v1alpha1/Workspace": workspace +"/area120tables:v1alpha1/Workspace/displayName": display_name +"/area120tables:v1alpha1/Workspace/name": name +"/area120tables:v1alpha1/Workspace/tables": tables +"/area120tables:v1alpha1/Workspace/tables/table": table "/area120tables:v1alpha1/area120tables.tables.get": get_table "/area120tables:v1alpha1/area120tables.tables.get/name": name "/area120tables:v1alpha1/area120tables.tables.list": list_tables @@ -14342,6 +14351,11 @@ "/area120tables:v1alpha1/area120tables.tables.rows.patch/name": name "/area120tables:v1alpha1/area120tables.tables.rows.patch/updateMask": update_mask "/area120tables:v1alpha1/area120tables.tables.rows.patch/view": view +"/area120tables:v1alpha1/area120tables.workspaces.get": get_workspace +"/area120tables:v1alpha1/area120tables.workspaces.get/name": name +"/area120tables:v1alpha1/area120tables.workspaces.list": list_workspaces +"/area120tables:v1alpha1/area120tables.workspaces.list/pageSize": page_size +"/area120tables:v1alpha1/area120tables.workspaces.list/pageToken": page_token "/area120tables:v1alpha1/fields": fields "/area120tables:v1alpha1/key": key "/area120tables:v1alpha1/quotaUser": quota_user diff --git a/generated/google/apis/area120tables_v1alpha1.rb b/generated/google/apis/area120tables_v1alpha1.rb index bc975da31..6457e1cb8 100644 --- a/generated/google/apis/area120tables_v1alpha1.rb +++ b/generated/google/apis/area120tables_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://tables.area120.google.com module Area120tablesV1alpha1 VERSION = 'V1alpha1' - REVISION = '20201021' + REVISION = '20201104' # See, edit, create, and delete all of your Google Drive files AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/area120tables_v1alpha1/classes.rb b/generated/google/apis/area120tables_v1alpha1/classes.rb index 877586ce3..bca48fc67 100644 --- a/generated/google/apis/area120tables_v1alpha1/classes.rb +++ b/generated/google/apis/area120tables_v1alpha1/classes.rb @@ -283,6 +283,32 @@ module Google end end + # Response message for TablesService.ListWorkspaces. + class ListWorkspacesResponse + include Google::Apis::Core::Hashable + + # A token, which can be sent as `page_token` to retrieve the next page. If this + # field is empty, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of workspaces. + # Corresponds to the JSON property `workspaces` + # @return [Array] + attr_accessor :workspaces + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @workspaces = args[:workspaces] if args.key?(:workspaces) + end + end + # Details about a lookup column whose value comes from the associated # relationship. class LookupDetails @@ -418,6 +444,38 @@ module Google @view = args[:view] if args.key?(:view) end end + + # A single workspace. + class Workspace + include Google::Apis::Core::Hashable + + # The human readable title of the workspace. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The resource name of the workspace. Workspace names have the form `workspaces/` + # workspace``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The list of tables in the workspace. + # Corresponds to the JSON property `tables` + # @return [Array] + attr_accessor :tables + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @tables = args[:tables] if args.key?(:tables) + end + end end end end diff --git a/generated/google/apis/area120tables_v1alpha1/representations.rb b/generated/google/apis/area120tables_v1alpha1/representations.rb index 1702a3021..44719315d 100644 --- a/generated/google/apis/area120tables_v1alpha1/representations.rb +++ b/generated/google/apis/area120tables_v1alpha1/representations.rb @@ -82,6 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListWorkspacesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LookupDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +118,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Workspace + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BatchCreateRowsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -201,6 +213,15 @@ module Google end end + class ListWorkspacesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :workspaces, as: 'workspaces', class: Google::Apis::Area120tablesV1alpha1::Workspace, decorator: Google::Apis::Area120tablesV1alpha1::Workspace::Representation + + end + end + class LookupDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -243,6 +264,16 @@ module Google property :view, as: 'view' end end + + class Workspace + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :name, as: 'name' + collection :tables, as: 'tables', class: Google::Apis::Area120tablesV1alpha1::Table, decorator: Google::Apis::Area120tablesV1alpha1::Table::Representation + + end + end end end end diff --git a/generated/google/apis/area120tables_v1alpha1/service.rb b/generated/google/apis/area120tables_v1alpha1/service.rb index 88df55082..14390f20a 100644 --- a/generated/google/apis/area120tables_v1alpha1/service.rb +++ b/generated/google/apis/area120tables_v1alpha1/service.rb @@ -368,6 +368,73 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Gets a workspace. Returns NOT_FOUND if the workspace does not exist. + # @param [String] name + # Required. The name of the workspace to retrieve. Format: workspaces/`workspace` + # @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::Area120tablesV1alpha1::Workspace] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Area120tablesV1alpha1::Workspace] + # + # @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_workspace(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/{+name}', options) + command.response_representation = Google::Apis::Area120tablesV1alpha1::Workspace::Representation + command.response_class = Google::Apis::Area120tablesV1alpha1::Workspace + 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 + + # Lists workspaces for the user. + # @param [Fixnum] page_size + # The maximum number of workspaces to return. The service may return fewer than + # this value. If unspecified, at most 10 workspaces are returned. The maximum + # value is 25; values above 25 are coerced to 25. + # @param [String] page_token + # A page token, received from a previous `ListWorkspaces` call. Provide this to + # retrieve the subsequent page. When paginating, all other parameters provided + # to `ListWorkspaces` must match the call that provided the 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::Area120tablesV1alpha1::ListWorkspacesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse] + # + # @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_workspaces(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1alpha1/workspaces', options) + command.response_representation = Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse::Representation + command.response_class = Google::Apis::Area120tablesV1alpha1::ListWorkspacesResponse + 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) + end protected diff --git a/generated/google/apis/area120tables_v1alpha1/synth.metadata b/generated/google/apis/area120tables_v1alpha1/synth.metadata index b61e89777..10402426d 100644 --- a/generated/google/apis/area120tables_v1alpha1/synth.metadata +++ b/generated/google/apis/area120tables_v1alpha1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "fc09f52cf09c75887c2bb4181838a141d6c4d079" + "sha": "a98ff78fa110f58ba38da0cc1291f35c55f96c9f" } } ]