Class: Google::Apis::BigtableadminV2::BigtableAdminService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::BigtableadminV2::BigtableAdminService
- Defined in:
- lib/google/apis/bigtableadmin_v2/service.rb
Overview
Cloud Bigtable Admin API
Administer your Cloud Bigtable tables and instances.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://bigtableadmin.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#check_table_consistency(name, check_consistency_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::CheckConsistencyResponse
Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
-
#copy_backup(parent, copy_backup_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
-
#create_instance(parent, create_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Create an instance within a project.
-
#create_project_instance_app_profile(parent, app_profile_object = nil, app_profile_id: nil, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AppProfile
Creates an app profile within an instance.
-
#create_project_instance_cluster(parent, cluster_object = nil, cluster_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Creates a cluster within an instance.
-
#create_project_instance_cluster_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Starts creating a new Cloud Bigtable Backup.
-
#create_project_instance_table_authorized_view(parent, authorized_view_object = nil, authorized_view_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Creates a new AuthorizedView in a table.
-
#create_table(parent, create_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Creates a new table in the specified instance.
-
#delete_project_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Delete an instance from a project.
-
#delete_project_instance_app_profile(name, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes an app profile from an instance.
-
#delete_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes a cluster from an instance.
-
#delete_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes a pending or completed Cloud Bigtable backup.
-
#delete_project_instance_table(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently deletes a specified table and all of its data.
-
#delete_project_instance_table_authorized_view(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently deletes a specified AuthorizedView.
-
#drop_table_row_range(name, drop_row_range_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently drop/delete a row range from a specified table.
-
#generate_table_consistency_token(name, generate_consistency_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated.
-
#get_authorized_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource.
-
#get_backup_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource.
-
#get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for an instance resource.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Gets the latest state of a long-running operation.
-
#get_project_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Instance
Gets information about an instance.
-
#get_project_instance_app_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AppProfile
Gets information about an app profile.
-
#get_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Cluster
Gets information about a cluster.
-
#get_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Backup
Gets metadata on a pending or completed Cloud Bigtable Backup.
-
#get_project_instance_table(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Gets metadata information about the specified table.
-
#get_project_instance_table_authorized_view(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AuthorizedView
Gets information from a specified AuthorizedView.
-
#get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource.
-
#initialize ⇒ BigtableAdminService
constructor
A new instance of BigtableAdminService.
-
#list_operation_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_instance_app_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListAppProfilesResponse
Lists information about app profiles in an instance.
-
#list_project_instance_cluster_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListBackupsResponse
Lists Cloud Bigtable backups.
-
#list_project_instance_cluster_hot_tablets(parent, end_time: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListHotTabletsResponse
Lists hot tablets in a cluster, within the time range provided.
-
#list_project_instance_clusters(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListClustersResponse
Lists information about clusters in an instance.
-
#list_project_instance_table_authorized_views(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListAuthorizedViewsResponse
Lists all AuthorizedViews from a specific table.
-
#list_project_instance_tables(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListTablesResponse
Lists all tables served from a specified instance.
-
#list_project_instances(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListInstancesResponse
Lists information about instances in a project.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListLocationsResponse
Lists information about the supported locations for this service.
-
#modify_table_column_families(name, modify_column_families_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Performs a series of column family modifications on the specified table.
-
#partial_project_instance_cluster_update_cluster(name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Partially updates a cluster within a project.
-
#partial_project_instance_update_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Partially updates an instance within a project.
-
#patch_project_instance_app_profile(name, app_profile_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates an app profile within an instance.
-
#patch_project_instance_cluster_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Backup
Updates a pending or completed Cloud Bigtable Backup.
-
#patch_project_instance_table(name, table_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates a specified table.
-
#patch_project_instance_table_authorized_view(name, authorized_view_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates an AuthorizedView in a table.
-
#restore_table(parent, restore_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Create a new table by restoring from a completed backup.
-
#set_authorized_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource.
-
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource.
-
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on an instance resource.
-
#set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource.
-
#test_authorized_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
-
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
-
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified instance resource.
-
#test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
-
#undelete_table(name, undelete_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Restores a specified table which was accidentally deleted.
-
#update_project_instance(name, instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Instance
Updates an instance within a project.
-
#update_project_instance_cluster(name, cluster_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates a cluster within an instance.
Constructor Details
#initialize ⇒ BigtableAdminService
Returns a new instance of BigtableAdminService.
47 48 49 50 51 52 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-bigtableadmin_v2', client_version: Google::Apis::BigtableadminV2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns 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.
45 46 47 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#check_table_consistency(name, check_consistency_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::CheckConsistencyResponse
Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1303 def check_table_consistency(name, check_consistency_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:checkConsistency', ) command.request_representation = Google::Apis::BigtableadminV2::CheckConsistencyRequest::Representation command.request_object = check_consistency_request_object command.response_representation = Google::Apis::BigtableadminV2::CheckConsistencyResponse::Representation command.response_class = Google::Apis::BigtableadminV2::CheckConsistencyResponse 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 |
#copy_backup(parent, copy_backup_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
879 880 881 882 883 884 885 886 887 888 889 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 879 def copy_backup(parent, copy_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/backups:copy', ) command.request_representation = Google::Apis::BigtableadminV2::CopyBackupRequest::Representation command.request_object = copy_backup_request_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |
#create_instance(parent, create_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Create an instance within a project. Note that exactly one of Cluster. serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.
151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 151 def create_instance(parent, create_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/instances', ) command.request_representation = Google::Apis::BigtableadminV2::CreateInstanceRequest::Representation command.request_object = create_instance_request_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |
#create_project_instance_app_profile(parent, app_profile_object = nil, app_profile_id: nil, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AppProfile
Creates an app profile within an instance.
469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 469 def create_project_instance_app_profile(parent, app_profile_object = nil, app_profile_id: nil, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/appProfiles', ) command.request_representation = Google::Apis::BigtableadminV2::AppProfile::Representation command.request_object = app_profile_object command.response_representation = Google::Apis::BigtableadminV2::AppProfile::Representation command.response_class = Google::Apis::BigtableadminV2::AppProfile command.params['parent'] = parent unless parent.nil? command.query['appProfileId'] = app_profile_id unless app_profile_id.nil? command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_instance_cluster(parent, cluster_object = nil, cluster_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Creates a cluster within an instance. Note that exactly one of Cluster. serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.
663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 663 def create_project_instance_cluster(parent, cluster_object = nil, cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/clusters', ) command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['parent'] = parent unless parent.nil? command.query['clusterId'] = cluster_id unless cluster_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 |
#create_project_instance_cluster_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
923 924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 923 def create_project_instance_cluster_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/backups', ) command.request_representation = Google::Apis::BigtableadminV2::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['parent'] = parent unless parent.nil? command.query['backupId'] = backup_id unless backup_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 |
#create_project_instance_table_authorized_view(parent, authorized_view_object = nil, authorized_view_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Creates a new AuthorizedView in a table.
1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1826 def (parent, = nil, authorized_view_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/authorizedViews', ) command.request_representation = Google::Apis::BigtableadminV2::AuthorizedView::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['parent'] = parent unless parent.nil? command.query['authorizedViewId'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_table(parent, create_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1338 def create_table(parent, create_table_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/tables', ) command.request_representation = Google::Apis::BigtableadminV2::CreateTableRequest::Representation command.request_object = create_table_request_object command.response_representation = Google::Apis::BigtableadminV2::Table::Representation command.response_class = Google::Apis::BigtableadminV2::Table 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 |
#delete_project_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Delete an instance from a project.
184 185 186 187 188 189 190 191 192 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 184 def delete_project_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty 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 |
#delete_project_instance_app_profile(name, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes an app profile from an instance.
506 507 508 509 510 511 512 513 514 515 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 506 def delete_project_instance_app_profile(name, ignore_warnings: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty command.params['name'] = name unless name.nil? command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes a cluster from an instance.
697 698 699 700 701 702 703 704 705 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 697 def delete_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty 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 |
#delete_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Deletes a pending or completed Cloud Bigtable backup.
957 958 959 960 961 962 963 964 965 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 957 def delete_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty 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 |
#delete_project_instance_table(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently deletes a specified table and all of its data.
1371 1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1371 def delete_project_instance_table(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty 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 |
#delete_project_instance_table_authorized_view(name, etag: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently deletes a specified AuthorizedView.
1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1865 def (name, etag: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#drop_table_row_range(name, drop_row_range_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Empty
Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix. Note that row key prefixes used here are treated as service data. For more information about how service data is handled, see the Google Cloud Privacy Notice.
1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1408 def drop_table_row_range(name, drop_row_range_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:dropRowRange', ) command.request_representation = Google::Apis::BigtableadminV2::DropRowRangeRequest::Representation command.request_object = drop_row_range_request_object command.response_representation = Google::Apis::BigtableadminV2::Empty::Representation command.response_class = Google::Apis::BigtableadminV2::Empty 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 |
#generate_table_consistency_token(name, generate_consistency_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1446 def generate_table_consistency_token(name, generate_consistency_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:generateConsistencyToken', ) command.request_representation = Google::Apis::BigtableadminV2::GenerateConsistencyTokenRequest::Representation command.request_object = generate_consistency_token_request_object command.response_representation = Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse::Representation command.response_class = Google::Apis::BigtableadminV2::GenerateConsistencyTokenResponse 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 |
#get_authorized_view_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1936 def (resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_backup_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1022 def get_backup_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.
249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 249 def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 75 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |
#get_project_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Instance
Gets information about an instance.
215 216 217 218 219 220 221 222 223 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 215 def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Instance::Representation command.response_class = Google::Apis::BigtableadminV2::Instance 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 |
#get_project_instance_app_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AppProfile
Gets information about an app profile.
538 539 540 541 542 543 544 545 546 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 538 def get_project_instance_app_profile(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::AppProfile::Representation command.response_class = Google::Apis::BigtableadminV2::AppProfile 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 |
#get_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Cluster
Gets information about a cluster.
728 729 730 731 732 733 734 735 736 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 728 def get_project_instance_cluster(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Cluster::Representation command.response_class = Google::Apis::BigtableadminV2::Cluster 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 |
#get_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Backup
Gets metadata on a pending or completed Cloud Bigtable Backup.
988 989 990 991 992 993 994 995 996 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 988 def get_project_instance_cluster_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Backup::Representation command.response_class = Google::Apis::BigtableadminV2::Backup 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 |
#get_project_instance_table(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Gets metadata information about the specified table.
1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1482 def get_project_instance_table(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::Table::Representation command.response_class = Google::Apis::BigtableadminV2::Table command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_instance_table_authorized_view(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::AuthorizedView
Gets information from a specified AuthorizedView.
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1901 def (name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BigtableadminV2::AuthorizedView::Representation command.response_class = Google::Apis::BigtableadminV2::AuthorizedView command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1517 def get_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_operation_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 112 def list_operation_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/operations', ) command.response_representation = Google::Apis::BigtableadminV2::ListOperationsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.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) end |
#list_project_instance_app_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListAppProfilesResponse
Lists information about app profiles in an instance.
580 581 582 583 584 585 586 587 588 589 590 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 580 def list_project_instance_app_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/appProfiles', ) command.response_representation = Google::Apis::BigtableadminV2::ListAppProfilesResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListAppProfilesResponse command.params['parent'] = parent unless parent.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) end |
#list_project_instance_cluster_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListBackupsResponse
Lists Cloud Bigtable backups. Returns both completed and pending backups.
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1094 def list_project_instance_cluster_backups(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, 'v2/{+parent}/backups', ) command.response_representation = Google::Apis::BigtableadminV2::ListBackupsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListBackupsResponse 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) end |
#list_project_instance_cluster_hot_tablets(parent, end_time: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListHotTabletsResponse
Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1264 def list_project_instance_cluster_hot_tablets(parent, end_time: nil, page_size: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/hotTablets', ) command.response_representation = Google::Apis::BigtableadminV2::ListHotTabletsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListHotTabletsResponse command.params['parent'] = parent unless parent.nil? command.query['endTime'] = end_time unless end_time.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['startTime'] = start_time unless start_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_instance_clusters(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListClustersResponse
Lists information about clusters in an instance.
763 764 765 766 767 768 769 770 771 772 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 763 def list_project_instance_clusters(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/clusters', ) command.response_representation = Google::Apis::BigtableadminV2::ListClustersResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListClustersResponse command.params['parent'] = parent unless parent.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 |
#list_project_instance_table_authorized_views(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListAuthorizedViewsResponse
Lists all AuthorizedViews from a specific table.
1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1982 def (parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/authorizedViews', ) command.response_representation = Google::Apis::BigtableadminV2::ListAuthorizedViewsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListAuthorizedViewsResponse command.params['parent'] = parent unless parent.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? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_instance_tables(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListTablesResponse
Lists all tables served from a specified instance.
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1562 def list_project_instance_tables(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/tables', ) command.response_representation = Google::Apis::BigtableadminV2::ListTablesResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListTablesResponse command.params['parent'] = parent unless parent.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? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_instances(parent, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListInstancesResponse
Lists information about instances in a project.
284 285 286 287 288 289 290 291 292 293 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 284 def list_project_instances(parent, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/instances', ) command.response_representation = Google::Apis::BigtableadminV2::ListInstancesResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListInstancesResponse command.params['parent'] = parent unless parent.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 |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::ListLocationsResponse
Lists information about the supported locations for this service.
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 2141 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/locations', ) command.response_representation = Google::Apis::BigtableadminV2::ListLocationsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.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) end |
#modify_table_column_families(name, modify_column_families_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Table
Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1601 def modify_table_column_families(name, modify_column_families_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:modifyColumnFamilies', ) command.request_representation = Google::Apis::BigtableadminV2::ModifyColumnFamiliesRequest::Representation command.request_object = modify_column_families_request_object command.response_representation = Google::Apis::BigtableadminV2::Table::Representation command.response_class = Google::Apis::BigtableadminV2::Table 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 |
#partial_project_instance_cluster_update_cluster(name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Partially updates a cluster within a project. This method is the preferred way to update a Cluster. To enable and update autoscaling, set cluster_config. cluster_autoscaling_config. When autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the update_mask. To disable autoscaling, clear cluster_config. cluster_autoscaling_config, and explicitly set a serve_node count via the update_mask.
806 807 808 809 810 811 812 813 814 815 816 817 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 806 def partial_project_instance_cluster_update_cluster(name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#partial_project_instance_update_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Partially updates an instance within a project. This method can modify all fields of an Instance and is the preferred way to update an Instance.
321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 321 def partial_project_instance_update_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_instance_app_profile(name, app_profile_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates an app profile within an instance.
619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 619 def patch_project_instance_app_profile(name, app_profile_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::AppProfile::Representation command.request_object = app_profile_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['name'] = name unless name.nil? command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_instance_cluster_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Backup
Updates a pending or completed Cloud Bigtable Backup.
1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1140 def patch_project_instance_cluster_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::BigtableadminV2::Backup::Representation command.response_class = Google::Apis::BigtableadminV2::Backup command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_instance_table(name, table_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates a specified table.
1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1644 def patch_project_instance_table(name, table_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_instance_table_authorized_view(name, authorized_view_object = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates an AuthorizedView in a table.
2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 2026 def (name, = nil, ignore_warnings: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::AuthorizedView::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation command.params['name'] = name unless name.nil? command.query['ignoreWarnings'] = ignore_warnings unless ignore_warnings.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_table(parent, restore_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1682 def restore_table(parent, restore_table_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/tables:restore', ) command.request_representation = Google::Apis::BigtableadminV2::RestoreTableRequest::Representation command.request_object = restore_table_request_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |
#set_authorized_view_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource. Replaces any existing policy.
2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 2064 def (resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource. Replaces any existing policy.
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1177 def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on an instance resource. Replaces any existing policy.
358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 358 def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Policy
Sets the access control policy on a Bigtable resource. Replaces any existing policy.
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1718 def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation command.response_class = Google::Apis::BigtableadminV2::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_authorized_view_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 2099 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1212 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified instance resource.
393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 393 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::TestIamPermissionsResponse
Returns permissions that the caller has on the specified Bigtable resource.
1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1753 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::BigtableadminV2::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#undelete_table(name, undelete_table_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Restores a specified table which was accidentally deleted.
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 1787 def undelete_table(name, undelete_table_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:undelete', ) command.request_representation = Google::Apis::BigtableadminV2::UndeleteTableRequest::Representation command.request_object = undelete_table_request_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |
#update_project_instance(name, instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Instance
Updates an instance within a project. This method updates only the display name and type for an Instance. To update other Instance properties, such as labels, use PartialUpdateInstance.
429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 429 def update_project_instance(name, instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::BigtableadminV2::Instance::Representation command.response_class = Google::Apis::BigtableadminV2::Instance 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 |
#update_project_instance_cluster(name, cluster_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigtableadminV2::Operation
Updates a cluster within an instance. Note that UpdateCluster does not support updating cluster_config.cluster_autoscaling_config. In order to update it, you must use PartialUpdateCluster.
843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/google/apis/bigtableadmin_v2/service.rb', line 843 def update_project_instance_cluster(name, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v2/{+name}', ) command.request_representation = Google::Apis::BigtableadminV2::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::BigtableadminV2::Operation::Representation command.response_class = Google::Apis::BigtableadminV2::Operation 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 |