diff --git a/api_names_out.yaml b/api_names_out.yaml index f77e1c570..e77226c68 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -16906,6 +16906,268 @@ "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user "/cloudmonitoring:v2beta2/userIp": user_ip +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog": google_cloud_privatecatalog_v1beta1_catalog +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog/createTime": create_time +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog/description": description +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog/displayName": display_name +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog/name": name +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Catalog/updateTime": update_time +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product": google_cloud_privatecatalog_v1beta1_product +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/assetType": asset_type +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/createTime": create_time +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/displayMetadata": display_metadata +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/displayMetadata/display_metadatum": display_metadatum +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/iconUri": icon_uri +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/name": name +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Product/updateTime": update_time +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse": google_cloud_privatecatalog_v1beta1_search_catalogs_response +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse/catalogs": catalogs +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse/catalogs/catalog": catalog +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse/nextPageToken": next_page_token +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchProductsResponse": google_cloud_privatecatalog_v1beta1_search_products_response +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchProductsResponse/nextPageToken": next_page_token +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchProductsResponse/products": products +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchProductsResponse/products/product": product +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse": google_cloud_privatecatalog_v1beta1_search_versions_response +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse/nextPageToken": next_page_token +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse/versions": versions +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse/versions/version": version +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version": google_cloud_privatecatalog_v1beta1_version +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/asset": asset +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/asset/asset": asset +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/createTime": create_time +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/description": description +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/name": name +"/cloudprivatecatalog:v1beta1/GoogleCloudPrivatecatalogV1beta1Version/updateTime": update_time +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.catalogs.search": search_folder_catalogs +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.catalogs.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.catalogs.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.catalogs.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.catalogs.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.products.search": search_folder_products +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.products.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.products.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.products.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.products.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.versions.search": search_folder_versions +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.versions.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.versions.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.versions.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.folders.versions.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.catalogs.search": search_organization_catalogs +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.catalogs.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.catalogs.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.catalogs.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.catalogs.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.products.search": search_organization_products +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.products.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.products.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.products.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.products.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.versions.search": search_organization_versions +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.versions.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.versions.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.versions.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.organizations.versions.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.catalogs.search": search_project_catalogs +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.catalogs.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.catalogs.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.catalogs.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.catalogs.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.products.search": search_project_products +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.products.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.products.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.products.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.products.search/resource": resource +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.versions.search": search_project_versions +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.versions.search/pageSize": page_size +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.versions.search/pageToken": page_token +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.versions.search/query": query +"/cloudprivatecatalog:v1beta1/cloudprivatecatalog.projects.versions.search/resource": resource +"/cloudprivatecatalog:v1beta1/fields": fields +"/cloudprivatecatalog:v1beta1/key": key +"/cloudprivatecatalog:v1beta1/quotaUser": quota_user +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Association": google_cloud_privatecatalogproducer_v1beta1_association +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Association/createTime": create_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Association/name": name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Association/resource": resource +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog": google_cloud_privatecatalogproducer_v1beta1_catalog +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/createTime": create_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/description": description +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/displayName": display_name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/name": name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/parent": parent +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Catalog/updateTime": update_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest": google_cloud_privatecatalogproducer_v1beta1_copy_product_request +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest/destinationProductName": destination_product_name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest": google_cloud_privatecatalogproducer_v1beta1_create_association_request +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest/association": association +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse": google_cloud_privatecatalogproducer_v1beta1_list_associations_response +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse/associations": associations +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse/associations/association": association +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse/nextPageToken": next_page_token +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse": google_cloud_privatecatalogproducer_v1beta1_list_catalogs_response +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse/catalogs": catalogs +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse/catalogs/catalog": catalog +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse/nextPageToken": next_page_token +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse": google_cloud_privatecatalogproducer_v1beta1_list_products_response +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse/nextPageToken": next_page_token +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse/products": products +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse/products/product": product +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse": google_cloud_privatecatalogproducer_v1beta1_list_versions_response +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse/nextPageToken": next_page_token +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse/versions": versions +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse/versions/version": version +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product": google_cloud_privatecatalogproducer_v1beta1_product +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/assetType": asset_type +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/createTime": create_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/displayMetadata": display_metadata +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/displayMetadata/display_metadatum": display_metadatum +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/iconUri": icon_uri +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/name": name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Product/updateTime": update_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest": google_cloud_privatecatalogproducer_v1beta1_undelete_catalog_request +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest": google_cloud_privatecatalogproducer_v1beta1_upload_icon_request +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest/icon": icon +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version": google_cloud_privatecatalogproducer_v1beta1_version +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/asset": asset +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/asset/asset": asset +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/createTime": create_time +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/description": description +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/name": name +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/originalAsset": original_asset +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/originalAsset/original_asset": original_asset +"/cloudprivatecatalogproducer:v1beta1/GoogleCloudPrivatecatalogproducerV1beta1Version/updateTime": update_time +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditConfig": google_iam_v1_audit_config +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditConfig/auditLogConfigs": audit_log_configs +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditConfig/auditLogConfigs/audit_log_config": audit_log_config +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditConfig/service": service +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditLogConfig": google_iam_v1_audit_log_config +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditLogConfig/exemptedMembers": exempted_members +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditLogConfig/exemptedMembers/exempted_member": exempted_member +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1AuditLogConfig/logType": log_type +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Binding": google_iam_v1_binding +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Binding/condition": condition +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Binding/members": members +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Binding/members/member": member +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Binding/role": role +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy": google_iam_v1_policy +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/auditConfigs": audit_configs +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/auditConfigs/audit_config": audit_config +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/bindings": bindings +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/bindings/binding": binding +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/etag": etag +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1Policy/version": version +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1SetIamPolicyRequest": google_iam_v1_set_iam_policy_request +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1SetIamPolicyRequest/policy": policy +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1SetIamPolicyRequest/updateMask": update_mask +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsRequest": google_iam_v1_test_iam_permissions_request +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsRequest/permissions": permissions +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsRequest/permissions/permission": permission +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsResponse": google_iam_v1_test_iam_permissions_response +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsResponse/permissions": permissions +"/cloudprivatecatalogproducer:v1beta1/GoogleIamV1TestIamPermissionsResponse/permissions/permission": permission +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningCancelOperationRequest": google_longrunning_cancel_operation_request +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningListOperationsResponse/operations": operations +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningListOperationsResponse/operations/operation": operation +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation": google_longrunning_operation +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/done": done +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/error": error +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/metadata": metadata +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/metadata/metadatum": metadatum +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/name": name +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/response": response +"/cloudprivatecatalogproducer:v1beta1/GoogleLongrunningOperation/response/response": response +"/cloudprivatecatalogproducer:v1beta1/GoogleProtobufEmpty": google_protobuf_empty +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus": google_rpc_status +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus/code": code +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus/details": details +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus/details/detail": detail +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus/details/detail/detail": detail +"/cloudprivatecatalogproducer:v1beta1/GoogleRpcStatus/message": message +"/cloudprivatecatalogproducer:v1beta1/GoogleTypeExpr": google_type_expr +"/cloudprivatecatalogproducer:v1beta1/GoogleTypeExpr/description": description +"/cloudprivatecatalogproducer:v1beta1/GoogleTypeExpr/expression": expression +"/cloudprivatecatalogproducer:v1beta1/GoogleTypeExpr/location": location +"/cloudprivatecatalogproducer:v1beta1/GoogleTypeExpr/title": title +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.create": create_catalog_association +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.create/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.delete": delete_catalog_association +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.delete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.get": get_catalog_association +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.get/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.list": list_catalog_associations +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.list/pageSize": page_size +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.list/pageToken": page_token +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.associations.list/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.create": create_catalog +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.delete": delete_catalog +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.delete/force": force +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.delete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.get": get_catalog +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.get/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.getIamPolicy": get_catalog_iam_policy +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.getIamPolicy/resource": resource +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.list": list_catalogs +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.list/pageSize": page_size +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.list/pageToken": page_token +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.list/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.patch": patch_catalog +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.patch/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.patch/updateMask": update_mask +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.copy": copy_catalog_product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.copy/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.create": create_catalog_product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.create/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.delete": delete_catalog_product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.delete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.get": get_catalog_product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.get/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.icons.upload": upload_catalog_product_icon +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.icons.upload/product": product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.list": list_catalog_products +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.list/filter": filter +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.list/pageSize": page_size +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.list/pageToken": page_token +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.list/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.patch": patch_catalog_product +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.patch/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.patch/updateMask": update_mask +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.create": create_catalog_product_version +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.create/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.delete": delete_catalog_product_version +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.delete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.get": get_catalog_product_version +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.get/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.list": list_catalog_product_versions +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.list/pageSize": page_size +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.list/pageToken": page_token +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.list/parent": parent +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.patch": patch_catalog_product_version +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.patch/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.products.versions.patch/updateMask": update_mask +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.setIamPolicy": set_catalog_iam_policy +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.setIamPolicy/resource": resource +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.testIamPermissions": test_catalog_iam_permissions +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.testIamPermissions/resource": resource +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.undelete": undelete_catalog +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.catalogs.undelete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.cancel": cancel_operation +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.cancel/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.delete": delete_operation +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.delete/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.get": get_operation +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.get/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.list": list_operations +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.list/filter": filter +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.list/name": name +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.list/pageSize": page_size +"/cloudprivatecatalogproducer:v1beta1/cloudprivatecatalogproducer.operations.list/pageToken": page_token +"/cloudprivatecatalogproducer:v1beta1/fields": fields +"/cloudprivatecatalogproducer:v1beta1/key": key +"/cloudprivatecatalogproducer:v1beta1/quotaUser": quota_user "/cloudprofiler:v2/CreateProfileRequest": create_profile_request "/cloudprofiler:v2/CreateProfileRequest/deployment": deployment "/cloudprofiler:v2/CreateProfileRequest/profile": profile @@ -46414,6 +46676,8 @@ "/dataproc:v1/SetIamPolicyRequest/policy": policy "/dataproc:v1/SoftwareConfig": software_config "/dataproc:v1/SoftwareConfig/imageVersion": image_version +"/dataproc:v1/SoftwareConfig/optionalComponents": optional_components +"/dataproc:v1/SoftwareConfig/optionalComponents/optional_component": optional_component "/dataproc:v1/SoftwareConfig/properties": properties "/dataproc:v1/SoftwareConfig/properties/property": property "/dataproc:v1/SparkJob": spark_job @@ -46657,6 +46921,23 @@ "/dataproc:v1beta2/AllocationAffinity/key": key "/dataproc:v1beta2/AllocationAffinity/values": values "/dataproc:v1beta2/AllocationAffinity/values/value": value +"/dataproc:v1beta2/AutoscalingConfig": autoscaling_config +"/dataproc:v1beta2/AutoscalingConfig/policyUri": policy_uri +"/dataproc:v1beta2/AutoscalingPolicy": autoscaling_policy +"/dataproc:v1beta2/AutoscalingPolicy/basicAlgorithm": basic_algorithm +"/dataproc:v1beta2/AutoscalingPolicy/id": id +"/dataproc:v1beta2/AutoscalingPolicy/name": name +"/dataproc:v1beta2/AutoscalingPolicy/secondaryWorkerConfig": secondary_worker_config +"/dataproc:v1beta2/AutoscalingPolicy/workerConfig": worker_config +"/dataproc:v1beta2/BasicAutoscalingAlgorithm": basic_autoscaling_algorithm +"/dataproc:v1beta2/BasicAutoscalingAlgorithm/cooldownPeriod": cooldown_period +"/dataproc:v1beta2/BasicAutoscalingAlgorithm/yarnConfig": yarn_config +"/dataproc:v1beta2/BasicYarnAutoscalingConfig": basic_yarn_autoscaling_config +"/dataproc:v1beta2/BasicYarnAutoscalingConfig/gracefulDecommissionTimeout": graceful_decommission_timeout +"/dataproc:v1beta2/BasicYarnAutoscalingConfig/scaleDownFactor": scale_down_factor +"/dataproc:v1beta2/BasicYarnAutoscalingConfig/scaleDownMinWorkerFraction": scale_down_min_worker_fraction +"/dataproc:v1beta2/BasicYarnAutoscalingConfig/scaleUpFactor": scale_up_factor +"/dataproc:v1beta2/BasicYarnAutoscalingConfig/scaleUpMinWorkerFraction": scale_up_min_worker_fraction "/dataproc:v1beta2/Binding": binding "/dataproc:v1beta2/Binding/condition": condition "/dataproc:v1beta2/Binding/members": members @@ -46675,6 +46956,7 @@ "/dataproc:v1beta2/Cluster/statusHistory": status_history "/dataproc:v1beta2/Cluster/statusHistory/status_history": status_history "/dataproc:v1beta2/ClusterConfig": cluster_config +"/dataproc:v1beta2/ClusterConfig/autoscalingConfig": autoscaling_config "/dataproc:v1beta2/ClusterConfig/configBucket": config_bucket "/dataproc:v1beta2/ClusterConfig/encryptionConfig": encryption_config "/dataproc:v1beta2/ClusterConfig/gceClusterConfig": gce_cluster_config @@ -46773,6 +47055,10 @@ "/dataproc:v1beta2/HiveJob/queryList": query_list "/dataproc:v1beta2/HiveJob/scriptVariables": script_variables "/dataproc:v1beta2/HiveJob/scriptVariables/script_variable": script_variable +"/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig": instance_group_autoscaling_policy_config +"/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig/maxInstances": max_instances +"/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig/minInstances": min_instances +"/dataproc:v1beta2/InstanceGroupAutoscalingPolicyConfig/weight": weight "/dataproc:v1beta2/InstanceGroupConfig": instance_group_config "/dataproc:v1beta2/InstanceGroupConfig/accelerators": accelerators "/dataproc:v1beta2/InstanceGroupConfig/accelerators/accelerator": accelerator @@ -46830,6 +47116,10 @@ "/dataproc:v1beta2/LifecycleConfig/autoDeleteTime": auto_delete_time "/dataproc:v1beta2/LifecycleConfig/autoDeleteTtl": auto_delete_ttl "/dataproc:v1beta2/LifecycleConfig/idleDeleteTtl": idle_delete_ttl +"/dataproc:v1beta2/ListAutoscalingPoliciesResponse": list_autoscaling_policies_response +"/dataproc:v1beta2/ListAutoscalingPoliciesResponse/nextPageToken": next_page_token +"/dataproc:v1beta2/ListAutoscalingPoliciesResponse/policies": policies +"/dataproc:v1beta2/ListAutoscalingPoliciesResponse/policies/policy": policy "/dataproc:v1beta2/ListClustersResponse": list_clusters_response "/dataproc:v1beta2/ListClustersResponse/clusters": clusters "/dataproc:v1beta2/ListClustersResponse/clusters/cluster": cluster @@ -47032,6 +47322,24 @@ "/dataproc:v1beta2/YarnApplication/progress": progress "/dataproc:v1beta2/YarnApplication/state": state "/dataproc:v1beta2/YarnApplication/trackingUrl": tracking_url +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.create": create_project_location_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.create/parent": parent +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.delete": delete_project_location_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.delete/name": name +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.get": get_project_location_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.get/name": name +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.getIamPolicy": get_project_location_autoscaling_policy_iam_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.getIamPolicy/resource": resource +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.list": list_project_location_autoscaling_policies +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.list/pageSize": page_size +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.list/pageToken": page_token +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.list/parent": parent +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.setIamPolicy": set_project_location_autoscaling_policy_iam_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.setIamPolicy/resource": resource +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.testIamPermissions": test_project_location_autoscaling_policy_iam_permissions +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.testIamPermissions/resource": resource +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.update": update_project_location_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.locations.autoscalingPolicies.update/name": name "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.create": create_project_location_workflow_template "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.create/parent": parent "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.delete": delete_project_location_workflow_template @@ -47058,6 +47366,24 @@ "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.testIamPermissions/resource": resource "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.update": update_project_location_workflow_template "/dataproc:v1beta2/dataproc.projects.locations.workflowTemplates.update/name": name +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.create": create_project_region_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.create/parent": parent +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.delete": delete_project_region_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.delete/name": name +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.get": get_project_region_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.get/name": name +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.getIamPolicy": get_autoscaling_policy_iam_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.getIamPolicy/resource": resource +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.list": list_project_region_autoscaling_policies +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.list/pageSize": page_size +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.list/pageToken": page_token +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.list/parent": parent +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.setIamPolicy": set_project_region_autoscaling_policy_iam_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.setIamPolicy/resource": resource +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.testIamPermissions": test_project_region_autoscaling_policy_iam_permissions +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.testIamPermissions/resource": resource +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.update": update_project_region_autoscaling_policy +"/dataproc:v1beta2/dataproc.projects.regions.autoscalingPolicies.update/name": name "/dataproc:v1beta2/dataproc.projects.regions.clusters.create": create_project_region_cluster "/dataproc:v1beta2/dataproc.projects.regions.clusters.create/projectId": project_id "/dataproc:v1beta2/dataproc.projects.regions.clusters.create/region": region diff --git a/generated/google/apis/binaryauthorization_v1beta1.rb b/generated/google/apis/binaryauthorization_v1beta1.rb index c0ff7e950..6bf439c0e 100644 --- a/generated/google/apis/binaryauthorization_v1beta1.rb +++ b/generated/google/apis/binaryauthorization_v1beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/binary-authorization/ module BinaryauthorizationV1beta1 VERSION = 'V1beta1' - REVISION = '20190215' + REVISION = '20190301' # 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/binaryauthorization_v1beta1/classes.rb b/generated/google/apis/binaryauthorization_v1beta1/classes.rb index 1d8c4d85b..901872042 100644 --- a/generated/google/apis/binaryauthorization_v1beta1/classes.rb +++ b/generated/google/apis/binaryauthorization_v1beta1/classes.rb @@ -128,14 +128,19 @@ module Google end end - # An attestator public key that will be used to - # verify attestations signed by this attestor. + # An attestor public key that will be used to verify + # attestations signed by this attestor. class AttestorPublicKey include Google::Apis::Core::Hashable # ASCII-armored representation of a PGP public key, as the entire output by # the command `gpg --export --armor foo@example.com` (either LF or CRLF # line endings). + # When using this field, `id` should be left blank. The BinAuthz API + # handlers will calculate the ID and fill it in automatically. BinAuthz + # computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as + # upper-case hex. If `id` is provided by the caller, it will be + # overwritten by the API-calculated ID. # Corresponds to the JSON property `asciiArmoredPgpPublicKey` # @return [String] attr_accessor :ascii_armored_pgp_public_key @@ -145,9 +150,13 @@ module Google # @return [String] attr_accessor :comment - # Output only. This field will be overwritten with key ID information, for - # example, an identifier extracted from a PGP public key. This field may not - # be updated. + # The ID of this public key. + # Signatures verified by BinAuthz must include the ID of the public key that + # can be used to verify them, and that ID must match the contents of this + # field exactly. + # Additional restrictions on this field can be imposed based on which public + # key type is encapsulated. See the documentation on `public_key` cases below + # for details. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -188,7 +197,7 @@ module Google # account. For example, `my-other-app@appspot.gserviceaccount.com`. # * `group:`emailid``: An email address that represents a Google group. # For example, `admins@example.com`. - # * `domain:`domain``: A Google Apps domain name that represents all the + # * `domain:`domain``: The G Suite domain (primary) that represents all the # users of that domain. For example, `google.com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] diff --git a/generated/google/apis/cloudprivatecatalog_v1beta1.rb b/generated/google/apis/cloudprivatecatalog_v1beta1.rb new file mode 100644 index 000000000..239657276 --- /dev/null +++ b/generated/google/apis/cloudprivatecatalog_v1beta1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudprivatecatalog_v1beta1/service.rb' +require 'google/apis/cloudprivatecatalog_v1beta1/classes.rb' +require 'google/apis/cloudprivatecatalog_v1beta1/representations.rb' + +module Google + module Apis + # Cloud Private Catalog API + # + # Enable cloud users to discover enterprise catalogs and products in their + # organizations. + # + # @see https://sites.google.com/corp/google.com/cloudprivatecatalog + module CloudprivatecatalogV1beta1 + VERSION = 'V1beta1' + REVISION = '20190304' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb b/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb new file mode 100644 index 000000000..d4e4b97c5 --- /dev/null +++ b/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb @@ -0,0 +1,358 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogV1beta1 + + # The readonly representation of a catalog computed with a given resource + # context. + class GoogleCloudPrivatecatalogV1beta1Catalog + include Google::Apis::Core::Hashable + + # Output only. The time when the catalog was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The description of the catalog. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The descriptive name of the catalog as it appears in UIs. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. The resource name of the target catalog, in the format of + # `catalogs/`catalog_id`'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The time when the catalog was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # The readonly representation of a product computed with a given resource + # context. + class GoogleCloudPrivatecatalogV1beta1Product + include Google::Apis::Core::Hashable + + # Output only. The type of the product asset. It can be one of the + # following values: + # * `google.deploymentmanager.Template` + # * `google.cloudprivatecatalog.ListingOnly` + # Corresponds to the JSON property `assetType` + # @return [String] + attr_accessor :asset_type + + # Output only. The time when the product was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The display metadata to describe the product. + # The JSON schema of the metadata differs by Product.asset_type. + # When the type is `google.deploymentmanager.Template`, the schema is as + # follows: + # ``` + # "$schema": http://json-schema.org/draft-04/schema# + # type: object + # properties: + # name: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # tagline: + # type: string + # minLength: 1 + # maxLength: 100 + # support_info: + # type: string + # minLength: 1 + # maxLength: 2048 + # creator: + # type: string + # minLength: 1 + # maxLength: 100 + # documentation: + # type: array + # items: + # type: object + # properties: + # url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # title: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # required: + # - name + # - description + # additionalProperties: false + # ``` + # When the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema + # is as follows: + # ``` + # "$schema": http://json-schema.org/draft-04/schema# + # type: object + # properties: + # name: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # tagline: + # type: string + # minLength: 1 + # maxLength: 100 + # support_info: + # type: string + # minLength: 1 + # maxLength: 2048 + # creator: + # type: string + # minLength: 1 + # maxLength: 100 + # documentation: + # type: array + # items: + # type: object + # properties: + # url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # title: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # signup_url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # required: + # - name + # - description + # - signup_url + # additionalProperties: false + # ``` + # Corresponds to the JSON property `displayMetadata` + # @return [Hash] + attr_accessor :display_metadata + + # Output only. The icon URI of the product. + # Corresponds to the JSON property `iconUri` + # @return [String] + attr_accessor :icon_uri + + # Output only. The resource name of the target product, in the format of + # `products/a-z*[a-z0-9]'. + # A unique identifier for the product under a catalog. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The time when the product was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_type = args[:asset_type] if args.key?(:asset_type) + @create_time = args[:create_time] if args.key?(:create_time) + @display_metadata = args[:display_metadata] if args.key?(:display_metadata) + @icon_uri = args[:icon_uri] if args.key?(:icon_uri) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Response message for PrivateCatalog.SearchCatalogs. + class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + include Google::Apis::Core::Hashable + + # The `Catalog`s computed from the resource context. + # Corresponds to the JSON property `catalogs` + # @return [Array] + attr_accessor :catalogs + + # A pagination token returned from a previous call to SearchCatalogs that + # indicates from where listing should continue. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @catalogs = args[:catalogs] if args.key?(:catalogs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Response message for PrivateCatalog.SearchProducts. + class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + include Google::Apis::Core::Hashable + + # A pagination token returned from a previous call to SearchProducts that + # indicates from where listing should continue. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The `Product` resources computed from the resource context. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + 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) + @products = args[:products] if args.key?(:products) + end + end + + # Response message for PrivateCatalog.SearchVersions. + class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + include Google::Apis::Core::Hashable + + # A pagination token returned from a previous call to SearchVersions that + # indicates from where the listing should continue. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The `Version` resources computed from the resource context. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + 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) + @versions = args[:versions] if args.key?(:versions) + end + end + + # The consumer representation of a version which is a child resource under a + # `Product` with asset data. + class GoogleCloudPrivatecatalogV1beta1Version + include Google::Apis::Core::Hashable + + # Output only. The asset which has been validated and is ready to be + # provisioned. See + # google.cloud.privatecatalogproducer.v1beta.Version.asset for details. + # Corresponds to the JSON property `asset` + # @return [Hash] + attr_accessor :asset + + # Output only. The time when the version was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The user-supplied description of the version. Maximum of 256 + # characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Output only. The resource name of the version, in the format + # `catalogs/`catalog_id`/products/`product_id`/versions/a-z*[a-z0-9]'. + # A unique identifier for the version under a product. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The time when the version was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset = args[:asset] if args.key?(:asset) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + end + end +end diff --git a/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb b/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb new file mode 100644 index 000000000..49c45561a --- /dev/null +++ b/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb @@ -0,0 +1,123 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogV1beta1 + + class GoogleCloudPrivatecatalogV1beta1Catalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogV1beta1Catalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudPrivatecatalogV1beta1Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_type, as: 'assetType' + property :create_time, as: 'createTime' + hash :display_metadata, as: 'displayMetadata' + property :icon_uri, as: 'iconUri' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :catalogs, as: 'catalogs', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Catalog, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Catalog::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :products, as: 'products', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Product::Representation + + end + end + + class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version, decorator: Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1Version::Representation + + end + end + + class GoogleCloudPrivatecatalogV1beta1Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :asset, as: 'asset' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + end + end +end diff --git a/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb b/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb new file mode 100644 index 000000000..56bd7da85 --- /dev/null +++ b/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb @@ -0,0 +1,486 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogV1beta1 + # Cloud Private Catalog API + # + # Enable cloud users to discover enterprise catalogs and products in their + # organizations. + # + # @example + # require 'google/apis/cloudprivatecatalog_v1beta1' + # + # Cloudprivatecatalog = Google::Apis::CloudprivatecatalogV1beta1 # Alias the module + # service = Cloudprivatecatalog::CloudPrivateCatalogService.new + # + # @see https://sites.google.com/corp/google.com/cloudprivatecatalog + class CloudPrivateCatalogService < Google::Apis::Core::BaseService + # @return [String] + # 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. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://cloudprivatecatalog.googleapis.com/', '') + @batch_path = 'batch' + end + + # Search Catalog resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. It can be in following formats: + # * `projects/`project_id`` + # * `folders/`folder_id`` + # * `organizations/`organization_id`` + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchCatalogs that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the catalogs. The supported queries are: + # * Get a single catalog: `name=catalogs/`catalog_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] + # + # @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 search_folder_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Product resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchProducts that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the products. + # The supported queries are: + # * List products of all catalogs: empty + # * List products under a catalog: `parent=catalogs/`catalog_id`` + # * Get a product by name: + # `name=catalogs/`catalog_id`/products/`product_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] + # + # @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 search_folder_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Version resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchVersions + # that indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the versions. Required. + # The supported queries are: + # * List versions under a product: + # `parent=catalogs/`catalog_id`/products/`product_id`` + # * Get a version by name: + # `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] + # + # @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 search_folder_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Catalog resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. It can be in following formats: + # * `projects/`project_id`` + # * `folders/`folder_id`` + # * `organizations/`organization_id`` + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchCatalogs that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the catalogs. The supported queries are: + # * Get a single catalog: `name=catalogs/`catalog_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] + # + # @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 search_organization_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Product resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchProducts that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the products. + # The supported queries are: + # * List products of all catalogs: empty + # * List products under a catalog: `parent=catalogs/`catalog_id`` + # * Get a product by name: + # `name=catalogs/`catalog_id`/products/`product_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] + # + # @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 search_organization_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Version resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchVersions + # that indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the versions. Required. + # The supported queries are: + # * List versions under a product: + # `parent=catalogs/`catalog_id`/products/`product_id`` + # * Get a version by name: + # `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] + # + # @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 search_organization_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Catalog resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. It can be in following formats: + # * `projects/`project_id`` + # * `folders/`folder_id`` + # * `organizations/`organization_id`` + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchCatalogs that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the catalogs. The supported queries are: + # * Get a single catalog: `name=catalogs/`catalog_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse] + # + # @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 search_project_catalogs(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/catalogs:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Product resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchProducts that + # indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the products. + # The supported queries are: + # * List products of all catalogs: empty + # * List products under a catalog: `parent=catalogs/`catalog_id`` + # * Get a product by name: + # `name=catalogs/`catalog_id`/products/`product_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse] + # + # @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 search_project_products(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/products:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchProductsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Search Version resources that consumers have access to, within the + # scope of the consumer cloud resource hierarchy context. + # @param [String] resource + # Required. The name of the resource context. See + # SearchCatalogsRequest.resource for details. + # @param [Fixnum] page_size + # The maximum number of entries that are requested. + # @param [String] page_token + # A pagination token returned from a previous call to SearchVersions + # that indicates where this listing should continue from. + # This field is optional. + # @param [String] query + # The query to filter the versions. Required. + # The supported queries are: + # * List versions under a product: + # `parent=catalogs/`catalog_id`/products/`product_id`` + # * Get a version by name: + # `name=catalogs/`catalog_id`/products/`product_id`/versions/`version_id`` + # @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::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse] + # + # @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 search_project_versions(resource, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}/versions:search', options) + command.response_representation = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogV1beta1::GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse + command.params['resource'] = resource unless resource.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['query'] = query unless query.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 + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb new file mode 100644 index 000000000..c5ba77a9a --- /dev/null +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb @@ -0,0 +1,35 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/cloudprivatecatalogproducer_v1beta1/service.rb' +require 'google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb' +require 'google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb' + +module Google + module Apis + # Cloud Private Catalog Producer API + # + # Enables cloud users to manage and share enterprise catalogs intheir + # organizations. + # + # @see https://sites.google.com/corp/google.com/cloudprivatecatalog + module CloudprivatecatalogproducerV1beta1 + VERSION = 'V1beta1' + REVISION = '20190304' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb new file mode 100644 index 000000000..a55f89ab2 --- /dev/null +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb @@ -0,0 +1,1212 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogproducerV1beta1 + + # An association tuple that pairs a `Catalog` to a resource + # that can use the `Catalog`. After association, a + # google.cloud.privatecatalog.v1beta1.Catalog becomes available to + # consumers under specified Association.resource and all of its child + # nodes. + # Users who have the `cloudprivatecatalog.targets.get` permission on any of + # the resource nodes can access the catalog and child products under the node. + # For example, suppose the cloud resource hierarchy is as follows: + # * organizations/example.com + # * folders/team + # * projects/test + # After creating an association with `organizations/example.com`, the catalog + # `catalogs/1` is accessible from the following paths: + # * organizations/example.com + # * folders/team + # * projects/test + # Users can access them by + # google.cloud.v1beta1.PrivateCatalog.SearchCatalogs action. + class GoogleCloudPrivatecatalogproducerV1beta1Association + include Google::Apis::Core::Hashable + + # The creation time of the association. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Output only. The resource name of the catalog association, in the format + # `catalogs/`catalog_id`/associations/`association_id`'. + # A unique identifier for the catalog association, which is + # generated by catalog service. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The user-supplied fully qualified name of the `Resource` + # associated to the `Catalog`. It supports `Organization`, `Folder`, + # and `Project`. Values are of the form + # * `//cloudresourcemanager.googleapis.com/projects/`product_number`` + # * `//cloudresourcemanager.googleapis.com/folders/`folder_id`` + # * `//cloudresourcemanager.googleapis.com/organizations/`organization_id`` + # Corresponds to the JSON property `resource` + # @return [String] + attr_accessor :resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @name = args[:name] if args.key?(:name) + @resource = args[:resource] if args.key?(:resource) + end + end + + # The producer representation of a catalog which is a curated collection of + # solutions that can be managed, controlled, and shared by cloud admins. + class GoogleCloudPrivatecatalogproducerV1beta1Catalog + include Google::Apis::Core::Hashable + + # Output only. The time when the catalog was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. The user-supplied description of the catalog. Maximum of 512 + # characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The user-supplied descriptive name of the catalog as it appears + # in UIs. Maximum 256 characters in length. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Output only. The resource name of the catalog, in the format + # `catalogs/`catalog_id`'. + # A unique identifier for the catalog, which is generated + # by catalog service. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The parent resource name of the catalog, which can't be changed + # after a catalog is created. It can only be an organization. Values are of + # the form `//cloudresourcemanager.googleapis.com/organizations/`. + # Maximum 256 characters in length. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Output only. The time when the catalog was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @name = args[:name] if args.key?(:name) + @parent = args[:parent] if args.key?(:parent) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest + include Google::Apis::Core::Hashable + + # The resource name of the destination product that is copied to. + # Corresponds to the JSON property `destinationProductName` + # @return [String] + attr_accessor :destination_product_name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_product_name = args[:destination_product_name] if args.key?(:destination_product_name) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest + include Google::Apis::Core::Hashable + + # An association tuple that pairs a `Catalog` to a resource + # that can use the `Catalog`. After association, a + # google.cloud.privatecatalog.v1beta1.Catalog becomes available to + # consumers under specified Association.resource and all of its child + # nodes. + # Users who have the `cloudprivatecatalog.targets.get` permission on any of + # the resource nodes can access the catalog and child products under the node. + # For example, suppose the cloud resource hierarchy is as follows: + # * organizations/example.com + # * folders/team + # * projects/test + # After creating an association with `organizations/example.com`, the catalog + # `catalogs/1` is accessible from the following paths: + # * organizations/example.com + # * folders/team + # * projects/test + # Users can access them by + # google.cloud.v1beta1.PrivateCatalog.SearchCatalogs action. + # Corresponds to the JSON property `association` + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association] + attr_accessor :association + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @association = args[:association] if args.key?(:association) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse + include Google::Apis::Core::Hashable + + # The returned `Association` resources from the list call. + # Corresponds to the JSON property `associations` + # @return [Array] + attr_accessor :associations + + # A pagination token returned from a previous call to + # `ListAssociations` that indicates where the listing should continue from. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @associations = args[:associations] if args.key?(:associations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse + include Google::Apis::Core::Hashable + + # The `Catalogs` returned from the list call. + # Corresponds to the JSON property `catalogs` + # @return [Array] + attr_accessor :catalogs + + # A pagination token returned from a previous call to ListCatalogs + # that indicates where the listing should continue from. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @catalogs = args[:catalogs] if args.key?(:catalogs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse + include Google::Apis::Core::Hashable + + # A pagination token returned from a previous call to ListProducts + # that indicates where the listing should continue from. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The `Product` returned from the list call. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + 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) + @products = args[:products] if args.key?(:products) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse + include Google::Apis::Core::Hashable + + # A pagination token returned from a previous call to ListProducts + # that indicates where the listing should continue from. + # This field is optional. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The `VersiVersionon` returned from the list call. + # Corresponds to the JSON property `versions` + # @return [Array] + attr_accessor :versions + + 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) + @versions = args[:versions] if args.key?(:versions) + end + end + + # The producer representation of a product which is a child resource of + # `Catalog` with display metadata and a list of `Version` resources. + class GoogleCloudPrivatecatalogproducerV1beta1Product + include Google::Apis::Core::Hashable + + # Required. The type of the product asset, which cannot be changed after the + # product is created. It supports the values + # `google.deploymentmanager.Template` and + # `google.cloudprivatecatalog.ListingOnly`. Other values will be + # rejected by the server. Read only after creation. + # The following fields or resource types have different validation rules + # under each `asset_type` values: + # * Product.display_metadata has different validation schema for each + # asset type value. See its comment for details. + # * Version resource isn't allowed to be added under the + # `google.cloudprivatecatalog.ListingOnly` type. + # Corresponds to the JSON property `assetType` + # @return [String] + attr_accessor :asset_type + + # Output only. The time when the product was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The user-supplied display metadata to describe the product. + # The JSON schema of the metadata differs by Product.asset_type. + # When the type is `google.deploymentmanager.Template`, the schema is as + # follows: + # ``` + # "$schema": http://json-schema.org/draft-04/schema# + # type: object + # properties: + # name: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # tagline: + # type: string + # minLength: 1 + # maxLength: 100 + # support_info: + # type: string + # minLength: 1 + # maxLength: 2048 + # creator: + # type: string + # minLength: 1 + # maxLength: 100 + # documentation: + # type: array + # items: + # type: object + # properties: + # url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # title: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # required: + # - name + # - description + # additionalProperties: false + # ``` + # When the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema + # is as follows: + # ``` + # "$schema": http://json-schema.org/draft-04/schema# + # type: object + # properties: + # name: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # tagline: + # type: string + # minLength: 1 + # maxLength: 100 + # support_info: + # type: string + # minLength: 1 + # maxLength: 2048 + # creator: + # type: string + # minLength: 1 + # maxLength: 100 + # documentation: + # type: array + # items: + # type: object + # properties: + # url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # title: + # type: string + # minLength: 1 + # maxLength: 64 + # description: + # type: string + # minLength: 1 + # maxLength: 2048 + # signup_url: + # type: string + # pattern: + # "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" + # required: + # - name + # - description + # - signup_url + # additionalProperties: false + # ``` + # Corresponds to the JSON property `displayMetadata` + # @return [Hash] + attr_accessor :display_metadata + + # Output only. The public accessible URI of the icon uploaded by + # PrivateCatalogProducer.UploadIcon. + # If no icon is uploaded, it will be the default icon's URI. + # Corresponds to the JSON property `iconUri` + # @return [String] + attr_accessor :icon_uri + + # Required. The resource name of the product in the format + # `catalogs/`catalog_id`/products/a-z*[a-z0-9]'. + # A unique identifier for the product under a catalog, which cannot + # be changed after the product is created. The final + # segment of the name must between 1 and 256 characters in length. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The time when the product was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_type = args[:asset_type] if args.key?(:asset_type) + @create_time = args[:create_time] if args.key?(:create_time) + @display_metadata = args[:display_metadata] if args.key?(:display_metadata) + @icon_uri = args[:icon_uri] if args.key?(:icon_uri) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # + class GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest + include Google::Apis::Core::Hashable + + # The raw icon bytes user-supplied to be uploaded to the product. The format + # of the icon can only be PNG or JPEG. The minimum allowed dimensions are + # 130x130 pixels and the maximum dimensions are 10000x10000 pixels. + # Required. + # Corresponds to the JSON property `icon` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :icon + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @icon = args[:icon] if args.key?(:icon) + end + end + + # The producer representation of a version, which is a child resource under a + # `Product` with asset data. + class GoogleCloudPrivatecatalogproducerV1beta1Version + include Google::Apis::Core::Hashable + + # Output only. The asset which has been validated and is ready to be + # provisioned. See Version.original_asset for the schema. + # Corresponds to the JSON property `asset` + # @return [Hash] + attr_accessor :asset + + # Output only. The time when the version was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The user-supplied description of the version. Maximum of 256 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. The resource name of the version, in the format + # `catalogs/`catalog_id`/products/`product_id`/versions/a-z*[a-z0-9]'. + # A unique identifier for the version under a product, which can't + # be changed after the version is created. The final segment of the name must + # between 1 and 63 characters in length. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The user-supplied asset payload. The maximum size of the payload is 2MB. + # The JSON schema of the payload is defined as: + # ``` + # type: object + # properties: + # mainTemplate: + # type: string + # description: The file name of the main template and name prefix of + # schema file. The content of the main template should be set in the + # imports list. The schema file name is expected to be + # .schema in the imports list. required: true + # imports: + # type: array + # description: Import template and schema file contents. Required to have + # both and .schema files. required: true + # minItems: 2 + # items: + # type: object + # properties: + # name: + # type: string + # content: + # type: string + # ``` + # Corresponds to the JSON property `originalAsset` + # @return [Hash] + attr_accessor :original_asset + + # Output only. The time when the version was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset = args[:asset] if args.key?(:asset) + @create_time = args[:create_time] if args.key?(:create_time) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @original_asset = args[:original_asset] if args.key?(:original_asset) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Specifies the audit configuration for a service. + # The configuration determines which permission types are logged, and what + # identities, if any, are exempted from logging. + # An AuditConfig must have one or more AuditLogConfigs. + # If there are AuditConfigs for both `allServices` and a specific service, + # the union of the two AuditConfigs is used for that service: the log_types + # specified in each AuditConfig are enabled, and the exempted_members in each + # AuditLogConfig are exempted. + # Example Policy with multiple AuditConfigs: + # ` + # "audit_configs": [ + # ` + # "service": "allServices" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # `, + # ` + # "log_type": "ADMIN_READ", + # ` + # ] + # `, + # ` + # "service": "fooservice.googleapis.com" + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # `, + # ` + # "log_type": "DATA_WRITE", + # "exempted_members": [ + # "user:bar@gmail.com" + # ] + # ` + # ] + # ` + # ] + # ` + # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ + # logging. It also exempts foo@gmail.com from DATA_READ logging, and + # bar@gmail.com from DATA_WRITE logging. + class GoogleIamV1AuditConfig + include Google::Apis::Core::Hashable + + # The configuration for logging of each type of permission. + # Corresponds to the JSON property `auditLogConfigs` + # @return [Array] + attr_accessor :audit_log_configs + + # Specifies a service that will be enabled for audit logging. + # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + # `allServices` is a special value that covers all services. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) + @service = args[:service] if args.key?(:service) + end + end + + # Provides the configuration for logging a type of permissions. + # Example: + # ` + # "audit_log_configs": [ + # ` + # "log_type": "DATA_READ", + # "exempted_members": [ + # "user:foo@gmail.com" + # ] + # `, + # ` + # "log_type": "DATA_WRITE", + # ` + # ] + # ` + # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting + # foo@gmail.com from DATA_READ logging. + class GoogleIamV1AuditLogConfig + include Google::Apis::Core::Hashable + + # Specifies the identities that do not cause logging for this type of + # permission. + # Follows the same format of Binding.members. + # Corresponds to the JSON property `exemptedMembers` + # @return [Array] + attr_accessor :exempted_members + + # The log type that this config enables. + # Corresponds to the JSON property `logType` + # @return [String] + attr_accessor :log_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exempted_members = args[:exempted_members] if args.key?(:exempted_members) + @log_type = args[:log_type] if args.key?(:log_type) + end + end + + # Associates `members` with a `role`. + class GoogleIamV1Binding + include Google::Apis::Core::Hashable + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + # Corresponds to the JSON property `condition` + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleTypeExpr] + attr_accessor :condition + + # Specifies the identities requesting access for a Cloud Platform resource. + # `members` can have the following values: + # * `allUsers`: A special identifier that represents anyone who is + # on the internet; with or without a Google account. + # * `allAuthenticatedUsers`: A special identifier that represents anyone + # who is authenticated with a Google account or a service account. + # * `user:`emailid``: An email address that represents a specific Google + # account. For example, `alice@gmail.com` . + # * `serviceAccount:`emailid``: An email address that represents a service + # account. For example, `my-other-app@appspot.gserviceaccount.com`. + # * `group:`emailid``: An email address that represents a Google group. + # For example, `admins@example.com`. + # * `domain:`domain``: The G Suite domain (primary) that represents all the + # users of that domain. For example, `google.com` or `example.com`. + # Corresponds to the JSON property `members` + # @return [Array] + attr_accessor :members + + # Role that is assigned to `members`. + # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @condition = args[:condition] if args.key?(:condition) + @members = args[:members] if args.key?(:members) + @role = args[:role] if args.key?(:role) + end + end + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + class GoogleIamV1Policy + include Google::Apis::Core::Hashable + + # Specifies cloud audit logging configuration for this policy. + # Corresponds to the JSON property `auditConfigs` + # @return [Array] + attr_accessor :audit_configs + + # Associates a list of `members` to a `role`. + # `bindings` with no members will result in an error. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # `etag` is used for optimistic concurrency control as a way to help + # prevent simultaneous updates of a policy from overwriting each other. + # It is strongly suggested that systems make use of the `etag` in the + # read-modify-write cycle to perform policy updates in order to avoid race + # conditions: An `etag` is returned in the response to `getIamPolicy`, and + # systems are expected to put that etag in the request to `setIamPolicy` to + # ensure that their change will be applied to the same version of the policy. + # If no `etag` is provided in the call to `setIamPolicy`, then the existing + # policy is overwritten blindly. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Deprecated. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audit_configs = args[:audit_configs] if args.key?(:audit_configs) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @version = args[:version] if args.key?(:version) + end + end + + # Request message for `SetIamPolicy` method. + class GoogleIamV1SetIamPolicyRequest + include Google::Apis::Core::Hashable + + # Defines an Identity and Access Management (IAM) policy. It is used to + # specify access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of + # `members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` + # "bindings": [ + # ` + # "role": "roles/owner", + # "members": [ + # "user:mike@example.com", + # "group:admins@example.com", + # "domain:google.com", + # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # ] + # `, + # ` + # "role": "roles/viewer", + # "members": ["user:sean@example.com"] + # ` + # ] + # ` + # **YAML Example** + # bindings: + # - members: + # - user:mike@example.com + # - group:admins@example.com + # - domain:google.com + # - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner + # - members: + # - user:sean@example.com + # role: roles/viewer + # For a description of IAM and its features, see the + # [IAM developer's guide](https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy] + attr_accessor :policy + + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # paths: "bindings, etag" + # This field is only used by Cloud IAM. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy = args[:policy] if args.key?(:policy) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end + + # Request message for `TestIamPermissions` method. + class GoogleIamV1TestIamPermissionsRequest + include Google::Apis::Core::Hashable + + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # Response message for `TestIamPermissions` method. + class GoogleIamV1TestIamPermissionsResponse + include Google::Apis::Core::Hashable + + # A subset of `TestPermissionsRequest.permissions` that the caller is + # allowed. + # Corresponds to the JSON property `permissions` + # @return [Array] + attr_accessor :permissions + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @permissions = args[:permissions] if args.key?(:permissions) + end + end + + # The request message for Operations.CancelOperation. + class GoogleLongrunningCancelOperationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for Operations.ListOperations. + class GoogleLongrunningListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # Corresponds to the JSON property `operations` + # @return [Array] + attr_accessor :operations + + 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) + @operations = args[:operations] if args.key?(:operations) + end + end + + # This resource represents a long-running operation that is the result of a + # network API call. + class GoogleLongrunningOperation + include Google::Apis::Core::Hashable + + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + # Corresponds to the JSON property `error` + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus] + attr_accessor :error + + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should have the format of `operations/some/unique/name`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) + end + end + + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # service Foo ` + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # ` + # The JSON representation for `Empty` is empty JSON object ````. + class GoogleProtobufEmpty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The `Status` type defines a logical error model that is suitable for different + # programming environments, including REST APIs and RPC APIs. It is used by + # [gRPC](https://github.com/grpc). The error model is designed to be: + # - Simple to use and understand for most users + # - Flexible enough to meet unexpected needs + # # Overview + # The `Status` message contains three pieces of data: error code, error message, + # and error details. The error code should be an enum value of + # google.rpc.Code, but it may accept additional error codes if needed. The + # error message should be a developer-facing English message that helps + # developers *understand* and *resolve* the error. If a localized user-facing + # error message is needed, put the localized message in the error details or + # localize it in the client. The optional error details may contain arbitrary + # information about the error. There is a predefined set of error detail types + # in the package `google.rpc` that can be used for common error conditions. + # # Language mapping + # The `Status` message is the logical representation of the error model, but it + # is not necessarily the actual wire format. When the `Status` message is + # exposed in different client libraries and different wire protocols, it can be + # mapped differently. For example, it will likely be mapped to some exceptions + # in Java, but more likely mapped to some error codes in C. + # # Other uses + # The error model and the `Status` message can be used in a variety of + # environments, either with or without APIs, to provide a + # consistent developer experience across different environments. + # Example uses of this error model include: + # - Partial errors. If a service needs to return partial errors to the client, + # it may embed the `Status` in the normal response to indicate the partial + # errors. + # - Workflow errors. A typical workflow has multiple steps. Each step may + # have a `Status` message for error reporting. + # - Batch operations. If a client uses batch request and batch response, the + # `Status` message should be used directly inside batch response, one for + # each error sub-response. + # - Asynchronous operations. If an API call embeds asynchronous operation + # results in its response, the status of those operations should be + # represented directly using the `Status` message. + # - Logging. If some API errors are stored in logs, the message `Status` could + # be used directly after any stripping needed for security/privacy reasons. + class GoogleRpcStatus + include Google::Apis::Core::Hashable + + # The status code, which should be an enum value of google.rpc.Code. + # Corresponds to the JSON property `code` + # @return [Fixnum] + attr_accessor :code + + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + # Corresponds to the JSON property `details` + # @return [Array>] + attr_accessor :details + + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # google.rpc.Status.details field, or localized by the client. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Represents an expression text. Example: + # title: "User account presence" + # description: "Determines whether the request has a user account" + # expression: "size(request.user) > 0" + class GoogleTypeExpr + include Google::Apis::Core::Hashable + + # An optional description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Textual representation of an expression in + # Common Expression Language syntax. + # The application context of the containing message determines which + # well-known feature set of CEL is supported. + # Corresponds to the JSON property `expression` + # @return [String] + attr_accessor :expression + + # An optional string indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # An optional title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @expression = args[:expression] if args.key?(:expression) + @location = args[:location] if args.key?(:location) + @title = args[:title] if args.key?(:title) + end + end + end + end +end diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb new file mode 100644 index 000000000..621b8876d --- /dev/null +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb @@ -0,0 +1,399 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogproducerV1beta1 + + class GoogleCloudPrivatecatalogproducerV1beta1Association + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1Catalog + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1Version + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1AuditConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1AuditLogConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1Binding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1Policy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1SetIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1TestIamPermissionsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleIamV1TestIamPermissionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningCancelOperationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleLongrunningOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleProtobufEmpty + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleRpcStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleTypeExpr + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudPrivatecatalogproducerV1beta1Association + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :name, as: 'name' + property :resource, as: 'resource' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1Catalog + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :description, as: 'description' + property :display_name, as: 'displayName' + property :name, as: 'name' + property :parent, as: 'parent' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :destination_product_name, as: 'destinationProductName' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :association, as: 'association', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation + + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :associations, as: 'associations', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :catalogs, as: 'catalogs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :products, as: 'products', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :versions, as: 'versions', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation + + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_type, as: 'assetType' + property :create_time, as: 'createTime' + hash :display_metadata, as: 'displayMetadata' + property :icon_uri, as: 'iconUri' + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :icon, :base64 => true, as: 'icon' + end + end + + class GoogleCloudPrivatecatalogproducerV1beta1Version + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :asset, as: 'asset' + property :create_time, as: 'createTime' + property :description, as: 'description' + property :name, as: 'name' + hash :original_asset, as: 'originalAsset' + property :update_time, as: 'updateTime' + end + end + + class GoogleIamV1AuditConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditLogConfig::Representation + + property :service, as: 'service' + end + end + + class GoogleIamV1AuditLogConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exempted_members, as: 'exemptedMembers' + property :log_type, as: 'logType' + end + end + + class GoogleIamV1Binding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :condition, as: 'condition', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleTypeExpr, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleTypeExpr::Representation + + collection :members, as: 'members' + property :role, as: 'role' + end + end + + class GoogleIamV1Policy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditConfig, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1AuditConfig::Representation + + collection :bindings, as: 'bindings', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Binding, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :version, as: 'version' + end + end + + class GoogleIamV1SetIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy, as: 'policy', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy::Representation + + property :update_mask, as: 'updateMask' + end + end + + class GoogleIamV1TestIamPermissionsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class GoogleIamV1TestIamPermissionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :permissions, as: 'permissions' + end + end + + class GoogleLongrunningCancelOperationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleLongrunningListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation + + end + end + + class GoogleLongrunningOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :done, as: 'done' + property :error, as: 'error', class: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus, decorator: Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleRpcStatus::Representation + + hash :metadata, as: 'metadata' + property :name, as: 'name' + hash :response, as: 'response' + end + end + + class GoogleProtobufEmpty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleRpcStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class GoogleTypeExpr + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :expression, as: 'expression' + property :location, as: 'location' + property :title, as: 'title' + end + end + end + end +end diff --git a/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb new file mode 100644 index 000000000..6035c8f50 --- /dev/null +++ b/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb @@ -0,0 +1,1073 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module CloudprivatecatalogproducerV1beta1 + # Cloud Private Catalog Producer API + # + # Enables cloud users to manage and share enterprise catalogs intheir + # organizations. + # + # @example + # require 'google/apis/cloudprivatecatalogproducer_v1beta1' + # + # Cloudprivatecatalogproducer = Google::Apis::CloudprivatecatalogproducerV1beta1 # Alias the module + # service = Cloudprivatecatalogproducer::CloudPrivateCatalogProducerService.new + # + # @see https://sites.google.com/corp/google.com/cloudprivatecatalog + class CloudPrivateCatalogProducerService < Google::Apis::Core::BaseService + # @return [String] + # 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. + attr_accessor :key + + # @return [String] + # 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. + attr_accessor :quota_user + + def initialize + super('https://cloudprivatecatalogproducer.googleapis.com/', '') + @batch_path = 'batch' + end + + # Creates a new Catalog resource. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] google_cloud_privatecatalogproducer_v1beta1_catalog_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_catalog(google_cloud_privatecatalogproducer_v1beta1_catalog_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/catalogs', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_catalog_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Soft deletes an existing Catalog and all resources under it. + # The catalog can only be deleted if there is no associations under it or + # DeleteCatalogRequest.force is true. The delete operation + # can be recovered by the PrivateCatalogProducer.UndeleteCatalog + # method. + # @param [String] name + # The resource name of the catalog. + # @param [Boolean] force + # Forces deletion of the `Catalog` and its `Association` resources. + # If the `Catalog` is still associated with other resources and + # force is not set to true, then the operation fails. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_catalog(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog + command.params['name'] = name unless name.nil? + command.query['force'] = force unless force.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Returns the requested Catalog resource. + # @param [String] name + # The resource name of the catalog. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] + # + # @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_catalog(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets IAM policy for the specified Catalog. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [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::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy] + # + # @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_catalog_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy + 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 + + # Lists Catalog resources that the producer has access to, within the + # scope of the parent resource. + # @param [Fixnum] page_size + # The maximum number of catalogs to return. + # @param [String] page_token + # A pagination token returned from a previous call to ListCatalogs + # that indicates where this listing should continue from. + # This field is optional. + # @param [String] parent + # The resource name of the parent resource. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse] + # + # @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_catalogs(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/catalogs', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListCatalogsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['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 + + # Updates a specific Catalog resource. + # @param [String] name + # Output only. The resource name of the catalog, in the format + # `catalogs/`catalog_id`'. + # A unique identifier for the catalog, which is generated + # by catalog service. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] google_cloud_privatecatalogproducer_v1beta1_catalog_object + # @param [String] update_mask + # Field mask that controls which fields of the catalog should be updated. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_catalog(name, google_cloud_privatecatalogproducer_v1beta1_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_catalog_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog + 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 + + # Sets the IAM policy for the specified Catalog. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy] + # + # @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 set_catalog_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1SetIamPolicyRequest::Representation + command.request_object = google_iam_v1_set_iam_policy_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy + 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 + + # Tests the IAM permissions for the specified Catalog. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsResponse] + # + # @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 test_catalog_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation + command.request_object = google_iam_v1_test_iam_permissions_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1TestIamPermissionsResponse + 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 + + # Undeletes a deleted Catalog and all resources under it. + # @param [String] name + # The resource name of the catalog. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest] google_cloud_privatecatalogproducer_v1beta1_undelete_catalog_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog] + # + # @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 undelete_catalog(name, google_cloud_privatecatalogproducer_v1beta1_undelete_catalog_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:undelete', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1UndeleteCatalogRequest::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_undelete_catalog_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Catalog + 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 + + # Creates an Association instance under a given Catalog. + # @param [String] parent + # The `Catalog` resource's name. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest] google_cloud_privatecatalogproducer_v1beta1_create_association_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_catalog_association(parent, google_cloud_privatecatalogproducer_v1beta1_create_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/associations', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1CreateAssociationRequest::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_create_association_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association + 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 + + # Deletes the given Association. + # @param [String] name + # The resource name of the `Association` to delete. + # @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::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_catalog_association(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + 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 + + # Returns the requested Association resource. + # @param [String] name + # The resource name of the `Association` to retrieve. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association] + # + # @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_catalog_association(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Association + 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 all Association resources under a catalog. + # @param [String] parent + # The resource name of the `Catalog` whose `Associations` are + # being retrieved. In the format `catalogs/`. + # @param [Fixnum] page_size + # The maximum number of catalog associations to return. + # @param [String] page_token + # A pagination token returned from the previous call to + # `ListAssociations`. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse] + # + # @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_catalog_associations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/associations', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListAssociationsResponse + 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 + + # Copies a Product under another Catalog. + # @param [String] name + # The resource name of the current product that is copied from. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest] google_cloud_privatecatalogproducer_v1beta1_copy_product_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] + # + # @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 copy_catalog_product(name, google_cloud_privatecatalogproducer_v1beta1_copy_product_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:copy', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1CopyProductRequest::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_copy_product_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation + 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 + + # Creates a Product instance under a given Catalog. + # @param [String] parent + # The catalog name of the new product's parent. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] google_cloud_privatecatalogproducer_v1beta1_product_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_catalog_product(parent, google_cloud_privatecatalogproducer_v1beta1_product_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/products', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_product_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product + 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 + + # Hard deletes a Product. + # @param [String] name + # The resource name of the product. + # @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::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_catalog_product(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + 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 + + # Returns the requested Product resource. + # @param [String] name + # The resource name of the product. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] + # + # @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_catalog_product(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product + 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 Product resources that the producer has access to, within the + # scope of the parent catalog. + # @param [String] parent + # The resource name of the parent resource. + # @param [String] filter + # A filter expression used to restrict the returned results based + # upon properties of the product. + # @param [Fixnum] page_size + # The maximum number of products to return. + # @param [String] page_token + # A pagination token returned from a previous call to ListProducts + # that indicates where this listing should continue from. + # This field is optional. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse] + # + # @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_catalog_products(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/products', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse + command.params['parent'] = parent unless parent.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 + + # Updates a specific Product resource. + # @param [String] name + # Required. The resource name of the product in the format + # `catalogs/`catalog_id`/products/a-z*[a-z0-9]'. + # A unique identifier for the product under a catalog, which cannot + # be changed after the product is created. The final + # segment of the name must between 1 and 256 characters in length. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] google_cloud_privatecatalogproducer_v1beta1_product_object + # @param [String] update_mask + # Field mask that controls which fields of the product should be updated. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_catalog_product(name, google_cloud_privatecatalogproducer_v1beta1_product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_product_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Product + 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 + + # Creates an Icon instance under a given Product. + # If Product only has a default icon, a new Icon + # instance is created and associated with the given Product. + # If Product already has a non-default icon, the action creates + # a new Icon instance, associates the newly created + # Icon with the given Product and deletes the old icon. + # @param [String] product + # The resource name of the product. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest] google_cloud_privatecatalogproducer_v1beta1_upload_icon_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @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 upload_catalog_product_icon(product, google_cloud_privatecatalogproducer_v1beta1_upload_icon_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+product}/icons:upload', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1UploadIconRequest::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_upload_icon_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + command.params['product'] = product unless product.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a Version instance under a given Product. + # @param [String] parent + # The product name of the new version's parent. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] google_cloud_privatecatalogproducer_v1beta1_version_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_catalog_product_version(parent, google_cloud_privatecatalogproducer_v1beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_version_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation + 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 + + # Hard deletes a Version. + # @param [String] name + # The resource name of the version. + # @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::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_catalog_product_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + 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 + + # Returns the requested Version resource. + # @param [String] name + # The resource name of the version. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] + # + # @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_catalog_product_version(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version + 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 Version resources that the producer has access to, within the + # scope of the parent Product. + # @param [String] parent + # The resource name of the parent resource. + # @param [Fixnum] page_size + # The maximum number of versions to return. + # @param [String] page_token + # A pagination token returned from a previous call to ListVersions + # that indicates where this listing should continue from. + # This field is optional. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse] + # + # @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_catalog_product_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1ListVersionsResponse + 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 + + # Updates a specific Version resource. + # @param [String] name + # Required. The resource name of the version, in the format + # `catalogs/`catalog_id`/products/`product_id`/versions/a-z*[a-z0-9]'. + # A unique identifier for the version under a product, which can't + # be changed after the version is created. The final segment of the name must + # between 1 and 63 characters in length. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] google_cloud_privatecatalogproducer_v1beta1_version_object + # @param [String] update_mask + # Field mask that controls which fields of the version should be updated. + # @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::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def patch_catalog_product_version(name, google_cloud_privatecatalogproducer_v1beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta1/{+name}', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation + command.request_object = google_cloud_privatecatalogproducer_v1beta1_version_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleCloudPrivatecatalogproducerV1beta1Version + 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 + + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an Operation.error value with a google.rpc.Status.code of 1, + # corresponding to `Code.CANCELLED`. + # @param [String] name + # The name of the operation resource to be cancelled. + # @param [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @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 cancel_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options) + command.request_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningCancelOperationRequest::Representation + command.request_object = google_longrunning_cancel_operation_request_object + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + 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 + + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # @param [String] name + # The name of the operation resource to be deleted. + # @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::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleProtobufEmpty + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the 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. + # @param [String] name + # The name of the operation resource. + # @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::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation] + # + # @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_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/{+name}', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningOperation + 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 operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] filter + # The standard list filter. + # @param [String] name + # The name of the operation's parent resource. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list 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::CloudprivatecatalogproducerV1beta1::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta1/operations', options) + command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleLongrunningListOperationsResponse + command.query['filter'] = filter unless filter.nil? + command.query['name'] = name unless name.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 + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index b4b367a97..e4e3d8b83 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://gsuite.google.com/products/cloud-search/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20190221' + REVISION = '20190227' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index 0aafce80d..f5dd417c3 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -147,9 +147,10 @@ module Google end end - # Datasource is a logical namespace for items to be indexed. - # All items must belong to a datasource. This is the prerequisite before - # items can be indexed into Cloud Search. + # Frontend protos implement autoconverters for this message type. If you add + # fields to this proto, please add corresponding fields to the frontend proto + # with the same names. + # LINT.IfChange class DataSource include Google::Apis::Core::Hashable @@ -4764,9 +4765,10 @@ module Google # @return [Google::Apis::CloudsearchV1::DebugOptions] attr_accessor :debug_options - # Datasource is a logical namespace for items to be indexed. - # All items must belong to a datasource. This is the prerequisite before - # items can be indexed into Cloud Search. + # Frontend protos implement autoconverters for this message type. If you add + # fields to this proto, please add corresponding fields to the frontend proto + # with the same names. + # LINT.IfChange # Corresponds to the JSON property `source` # @return [Google::Apis::CloudsearchV1::DataSource] attr_accessor :source diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index ea8bf2f20..2107a1f20 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20181126' + REVISION = '20190228' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 506df6040..feaf65e72 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -79,8 +79,8 @@ module Google # For example, my-other-app@appspot.gserviceaccount.com. # group:`emailid`: An email address that represents a Google group. For example, # admins@example.com. - # domain:`domain`: A Google Apps domain name that represents all the users of - # that domain. For example, google.com or example.com. + # domain:`domain`: The G Suite domain (primary) that represents all the users + # of that domain. For example, google.com or example.com. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -1170,11 +1170,10 @@ module Google class JobReference include Google::Apis::Core::Hashable - # Optional. The job ID, which must be unique within the project. The job ID is - # generated by the server upon job submission or provided by the user as a means - # to perform retries without creating duplicate jobs. The ID must contain only - # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The - # maximum length is 100 characters. + # Optional. The job ID, which must be unique within the project.The ID must + # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-) + # . The maximum length is 100 characters.If not specified by the caller, the job + # ID will be provided by the server. # Corresponds to the JSON property `jobId` # @return [String] attr_accessor :job_id @@ -2009,6 +2008,11 @@ module Google # @return [String] attr_accessor :image_version + # The set of optional components to activate on the cluster. + # Corresponds to the JSON property `optionalComponents` + # @return [Array] + attr_accessor :optional_components + # Optional. The properties to set on daemon config files.Property keys are # specified in prefix:property format, such as core:fs.defaultFS. The following # are supported prefixes and their mappings: @@ -2032,6 +2036,7 @@ module Google # Update properties of this object def update!(**args) @image_version = args[:image_version] if args.key?(:image_version) + @optional_components = args[:optional_components] if args.key?(:optional_components) @properties = args[:properties] if args.key?(:properties) end end diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 90048bad3..3fedb474e 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -872,6 +872,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :image_version, as: 'imageVersion' + collection :optional_components, as: 'optionalComponents' hash :properties, as: 'properties' end end diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 259afbddd..7621945de 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20181207' + REVISION = '20190228' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index ecb366591..62c17e001 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -33,13 +33,12 @@ module Google attr_accessor :accelerator_count # Full URL, partial URI, or short name of the accelerator type resource to - # expose to this instance. See Compute Engine AcceleratorTypes( /compute/docs/ - # reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/ - # beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * - # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 * - # nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc Auto - # Zone Placement feature, you must use the short name of the accelerator type - # resource, for example, nvidia-tesla-k80. + # expose to this instance. See Compute Engine AcceleratorTypesExamples * https:// + # www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/ + # acceleratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/ + # acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If + # you are using the Cloud Dataproc Auto Zone Placement feature, you must use the + # short name of the accelerator type resource, for example, nvidia-tesla-k80. # Corresponds to the JSON property `acceleratorTypeUri` # @return [String] attr_accessor :accelerator_type_uri @@ -86,6 +85,156 @@ module Google end end + # Autoscaling Policy config associated with the cluster. + class AutoscalingConfig + include Google::Apis::Core::Hashable + + # Optional. The autoscaling policy used by the cluster.Only resource names + # including projectid and location (region) are valid. Examples: + # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[ + # dataproc_region]/autoscalingPolicies/[policy_id] + # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[ + # policy_id]Note that the policy must be in the same project and Cloud Dataproc + # region. + # Corresponds to the JSON property `policyUri` + # @return [String] + attr_accessor :policy_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policy_uri = args[:policy_uri] if args.key?(:policy_uri) + end + end + + # Describes an autoscaling policy for Dataproc cluster autoscaler. + class AutoscalingPolicy + include Google::Apis::Core::Hashable + + # Basic algorithm for autoscaling. + # Corresponds to the JSON property `basicAlgorithm` + # @return [Google::Apis::DataprocV1beta2::BasicAutoscalingAlgorithm] + attr_accessor :basic_algorithm + + # Required. The policy id.The id must contain only letters (a-z, A-Z), numbers ( + # 0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or + # hyphen. Must consist of between 3 and 50 characters. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Output only. The "resource name" of the policy, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/autoscalingPolicies/`policy_id`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Configuration for the size bounds of an instance group, including its + # proportional size to other groups. + # Corresponds to the JSON property `secondaryWorkerConfig` + # @return [Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig] + attr_accessor :secondary_worker_config + + # Configuration for the size bounds of an instance group, including its + # proportional size to other groups. + # Corresponds to the JSON property `workerConfig` + # @return [Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig] + attr_accessor :worker_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @basic_algorithm = args[:basic_algorithm] if args.key?(:basic_algorithm) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config) + @worker_config = args[:worker_config] if args.key?(:worker_config) + end + end + + # Basic algorithm for autoscaling. + class BasicAutoscalingAlgorithm + include Google::Apis::Core::Hashable + + # Optional. Cooldown period in between scaling. Note that a cooldown period + # begins after a scaling operation has completed.Default: 120s. + # Corresponds to the JSON property `cooldownPeriod` + # @return [String] + attr_accessor :cooldown_period + + # Basic autoscaling configurations for YARN. + # Corresponds to the JSON property `yarnConfig` + # @return [Google::Apis::DataprocV1beta2::BasicYarnAutoscalingConfig] + attr_accessor :yarn_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period) + @yarn_config = args[:yarn_config] if args.key?(:yarn_config) + end + end + + # Basic autoscaling configurations for YARN. + class BasicYarnAutoscalingConfig + include Google::Apis::Core::Hashable + + # Optional. Timeout used during an autoscaling event (cluster update) between 0 + # seconds (no graceful decommission) and 1 day.Default: 0s. + # Corresponds to the JSON property `gracefulDecommissionTimeout` + # @return [String] + attr_accessor :graceful_decommission_timeout + + # Optional. Fraction of suggested decrease in workers to scale down by between 0 + # and 1. Suggested decrease when scaling down is determined by the amount of + # average available memory since the last cooldown period.Default: 1.0. + # Corresponds to the JSON property `scaleDownFactor` + # @return [Float] + attr_accessor :scale_down_factor + + # Optional. Minimum workers as a fraction of the current cluster size to to + # scale down by between 0 and 1.Default: 0.0. + # Corresponds to the JSON property `scaleDownMinWorkerFraction` + # @return [Float] + attr_accessor :scale_down_min_worker_fraction + + # Required. Fraction of suggested increase in workers to scale up by between 0 + # and 1. Suggested increase when scaling up is determined by the amount of + # average pending memory since the last cooldown period. + # Corresponds to the JSON property `scaleUpFactor` + # @return [Float] + attr_accessor :scale_up_factor + + # Optional. Minimum workers as a fraction of the current cluster size to to + # scale up by between 0 and 1.Default: 0.0. + # Corresponds to the JSON property `scaleUpMinWorkerFraction` + # @return [Float] + attr_accessor :scale_up_min_worker_fraction + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @graceful_decommission_timeout = args[:graceful_decommission_timeout] if args.key?(:graceful_decommission_timeout) + @scale_down_factor = args[:scale_down_factor] if args.key?(:scale_down_factor) + @scale_down_min_worker_fraction = args[:scale_down_min_worker_fraction] if args.key?(:scale_down_min_worker_fraction) + @scale_up_factor = args[:scale_up_factor] if args.key?(:scale_up_factor) + @scale_up_min_worker_fraction = args[:scale_up_min_worker_fraction] if args.key?(:scale_up_min_worker_fraction) + end + end + # Associates members with a role. class Binding include Google::Apis::Core::Hashable @@ -110,8 +259,8 @@ module Google # For example, my-other-app@appspot.gserviceaccount.com. # group:`emailid`: An email address that represents a Google group. For example, # admins@example.com. - # domain:`domain`: A Google Apps domain name that represents all the users of - # that domain. For example, google.com or example.com. + # domain:`domain`: The G Suite domain (primary) that represents all the users + # of that domain. For example, google.com or example.com. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -221,6 +370,11 @@ module Google class ClusterConfig include Google::Apis::Core::Hashable + # Autoscaling Policy config associated with the cluster. + # Corresponds to the JSON property `autoscalingConfig` + # @return [Google::Apis::DataprocV1beta2::AutoscalingConfig] + attr_accessor :autoscaling_config + # Optional. A Cloud Storage staging bucket used for sharing generated SSH keys # and config. If you do not specify a staging bucket, Cloud Dataproc will # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your @@ -291,6 +445,7 @@ module Google # Update properties of this object def update!(**args) + @autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config) @config_bucket = args[:config_bucket] if args.key?(:config_bucket) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config) @@ -940,6 +1095,46 @@ module Google end end + # Configuration for the size bounds of an instance group, including its + # proportional size to other groups. + class InstanceGroupAutoscalingPolicyConfig + include Google::Apis::Core::Hashable + + # Required. Maximum number of instances for this group. Must be >= min_instances. + # Corresponds to the JSON property `maxInstances` + # @return [Fixnum] + attr_accessor :max_instances + + # Optional. Minimum number of instances for this group.Default for primary + # workers is 2, default for secondary workers is 0. + # Corresponds to the JSON property `minInstances` + # @return [Fixnum] + attr_accessor :min_instances + + # Optional. Weight for instance group. Determines fraction of total workers in + # cluster that will be composed of instances from this instance group (e.g. if + # primary workers have weight 2 and secondary workers have weight 1, then the + # cluster should have approximately 2 primary workers to each secondary worker. + # Cluster may not reach these exact weights if constrained by min/max bounds or + # other autoscaling configurations.Default 1. Note that all groups have equal an + # equal weight by default, so the cluster will attempt to maintain an equal + # number of workers in each group within configured size bounds per group. + # Corresponds to the JSON property `weight` + # @return [Fixnum] + attr_accessor :weight + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_instances = args[:max_instances] if args.key?(:max_instances) + @min_instances = args[:min_instances] if args.key?(:min_instances) + @weight = args[:weight] if args.key?(:weight) + end + end + # Optional. The config settings for Compute Engine resources in an instance # group, such as a master or worker group. class InstanceGroupConfig @@ -1240,11 +1435,10 @@ module Google class JobReference include Google::Apis::Core::Hashable - # Optional. The job ID, which must be unique within the project. The job ID is - # generated by the server upon job submission or provided by the user as a means - # to perform retries without creating duplicate jobs. The ID must contain only - # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The - # maximum length is 100 characters. + # Optional. The job ID, which must be unique within the project.The ID must + # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-) + # . The maximum length is 100 characters.If not specified by the caller, the job + # ID will be provided by the server. # Corresponds to the JSON property `jobId` # @return [String] attr_accessor :job_id @@ -1362,6 +1556,32 @@ module Google end end + # A response to a request to list autoscaling policies in a project. + class ListAutoscalingPoliciesResponse + include Google::Apis::Core::Hashable + + # Output only. This token is included in the response if there are more results + # to fetch. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. Autoscaling policies list. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + 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) + @policies = args[:policies] if args.key?(:policies) + end + end + # The list of all clusters in a project. class ListClustersResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 61fc8e149..3daf343a0 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -34,6 +34,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AutoscalingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AutoscalingPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicAutoscalingAlgorithm + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BasicYarnAutoscalingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +178,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstanceGroupAutoscalingPolicyConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstanceGroupConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -202,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListAutoscalingPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListClustersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -417,6 +453,47 @@ module Google end end + class AutoscalingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :policy_uri, as: 'policyUri' + end + end + + class AutoscalingPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :basic_algorithm, as: 'basicAlgorithm', class: Google::Apis::DataprocV1beta2::BasicAutoscalingAlgorithm, decorator: Google::Apis::DataprocV1beta2::BasicAutoscalingAlgorithm::Representation + + property :id, as: 'id' + property :name, as: 'name' + property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig::Representation + + property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1beta2::InstanceGroupAutoscalingPolicyConfig::Representation + + end + end + + class BasicAutoscalingAlgorithm + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cooldown_period, as: 'cooldownPeriod' + property :yarn_config, as: 'yarnConfig', class: Google::Apis::DataprocV1beta2::BasicYarnAutoscalingConfig, decorator: Google::Apis::DataprocV1beta2::BasicYarnAutoscalingConfig::Representation + + end + end + + class BasicYarnAutoscalingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout' + property :scale_down_factor, as: 'scaleDownFactor' + property :scale_down_min_worker_fraction, as: 'scaleDownMinWorkerFraction' + property :scale_up_factor, as: 'scaleUpFactor' + property :scale_up_min_worker_fraction, as: 'scaleUpMinWorkerFraction' + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -454,6 +531,8 @@ module Google class ClusterConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::DataprocV1beta2::AutoscalingConfig, decorator: Google::Apis::DataprocV1beta2::AutoscalingConfig::Representation + property :config_bucket, as: 'configBucket' property :encryption_config, as: 'encryptionConfig', class: Google::Apis::DataprocV1beta2::EncryptionConfig, decorator: Google::Apis::DataprocV1beta2::EncryptionConfig::Representation @@ -630,6 +709,15 @@ module Google end end + class InstanceGroupAutoscalingPolicyConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_instances, as: 'maxInstances' + property :min_instances, as: 'minInstances' + property :weight, as: 'weight' + end + end + class InstanceGroupConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -737,6 +825,15 @@ module Google end end + class ListAutoscalingPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :policies, as: 'policies', class: Google::Apis::DataprocV1beta2::AutoscalingPolicy, decorator: Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + + end + end + class ListClustersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index 650d4b938..65fa3507b 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -47,6 +47,286 @@ module Google @batch_path = 'batch' end + # Creates new autoscaling policy. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`. + # @param [Google::Apis::DataprocV1beta2::AutoscalingPolicy] autoscaling_policy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+parent}/autoscalingPolicies', options) + command.request_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.request_object = autoscaling_policy_object + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + 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 + + # Deletes an autoscaling policy. It is an error to delete an autoscaling policy + # that is in use by one or more clusters. + # @param [String] name + # Required. The "resource name" of the autoscaling policy, as described in https: + # //cloud.google.com/apis/design/resource_names of the form projects/`project_id` + # /regions/`region`/autoscalingPolicies/`policy_id`. + # @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::DataprocV1beta2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Retrieves autoscaling policy. + # @param [String] name + # Required. The "resource name" of the autoscaling policy, as described in https: + # //cloud.google.com/apis/design/resource_names of the form projects/`project_id` + # /regions/`region`/autoscalingPolicies/`policy_id`. + # @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::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [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::DataprocV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Policy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_autoscaling_policy_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options) + command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Lists autoscaling policies in the project. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Fixnum] page_size + # Optional. The maximum number of results to return in each response. + # @param [String] page_token + # Optional. The page token, returned by a previous call, to request the next + # page of results. + # @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::DataprocV1beta2::ListAutoscalingPoliciesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+parent}/autoscalingPolicies', options) + command.response_representation = Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse::Representation + command.response_class = Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Policy] + # + # @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 set_project_location_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a + # NOT_FOUND error.Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] + # + # @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 test_project_location_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Updates (replaces) autoscaling policy.Disabled check for update_mask, because + # all updates will be full replacements. + # @param [String] name + # Output only. The "resource name" of the policy, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/autoscalingPolicies/`policy_id`. + # @param [Google::Apis::DataprocV1beta2::AutoscalingPolicy] autoscaling_policy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_location_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.request_object = autoscaling_policy_object + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + 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 + # Creates new workflow template. # @param [String] parent # Required. The "resource name" of the region, as described in https://cloud. @@ -430,6 +710,289 @@ module Google execute_or_queue_command(command, &block) end + # Creates new autoscaling policy. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`. + # @param [Google::Apis::DataprocV1beta2::AutoscalingPolicy] autoscaling_policy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_region_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+parent}/autoscalingPolicies', options) + command.request_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.request_object = autoscaling_policy_object + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + 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 + + # Deletes an autoscaling policy. It is an error to delete an autoscaling policy + # that is in use by one or more clusters. + # @param [String] name + # Required. The "resource name" of the autoscaling policy, as described in https: + # //cloud.google.com/apis/design/resource_names of the form projects/`project_id` + # /regions/`region`/autoscalingPolicies/`policy_id`. + # @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::DataprocV1beta2::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Retrieves autoscaling policy. + # @param [String] name + # Required. The "resource name" of the autoscaling policy, as described in https: + # //cloud.google.com/apis/design/resource_names of the form projects/`project_id` + # /regions/`region`/autoscalingPolicies/`policy_id`. + # @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::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. + # @param [String] resource + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DataprocV1beta2::GetIamPolicyRequest] get_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Policy] + # + # @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_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+resource}:getIamPolicy', options) + command.request_representation = Google::Apis::DataprocV1beta2::GetIamPolicyRequest::Representation + command.request_object = get_iam_policy_request_object + command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Lists autoscaling policies in the project. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Fixnum] page_size + # Optional. The maximum number of results to return in each response. + # @param [String] page_token + # Optional. The page token, returned by a previous call, to request the next + # page of results. + # @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::DataprocV1beta2::ListAutoscalingPoliciesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_region_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+parent}/autoscalingPolicies', options) + command.response_representation = Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse::Representation + command.response_class = Google::Apis::DataprocV1beta2::ListAutoscalingPoliciesResponse + 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 + + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # @param [String] resource + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DataprocV1beta2::SetIamPolicyRequest] set_iam_policy_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::Policy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::Policy] + # + # @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 set_project_region_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options) + command.request_representation = Google::Apis::DataprocV1beta2::SetIamPolicyRequest::Representation + command.request_object = set_iam_policy_request_object + command.response_representation = Google::Apis::DataprocV1beta2::Policy::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a + # NOT_FOUND error.Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. + # @param [String] resource + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. + # @param [Google::Apis::DataprocV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::TestIamPermissionsResponse] + # + # @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 test_project_region_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options) + command.request_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsRequest::Representation + command.request_object = test_iam_permissions_request_object + command.response_representation = Google::Apis::DataprocV1beta2::TestIamPermissionsResponse::Representation + command.response_class = Google::Apis::DataprocV1beta2::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 + + # Updates (replaces) autoscaling policy.Disabled check for update_mask, because + # all updates will be full replacements. + # @param [String] name + # Output only. The "resource name" of the policy, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/autoscalingPolicies/`policy_id`. + # @param [Google::Apis::DataprocV1beta2::AutoscalingPolicy] autoscaling_policy_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1beta2::AutoscalingPolicy] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1beta2::AutoscalingPolicy] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def update_project_region_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1beta2/{+name}', options) + command.request_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.request_object = autoscaling_policy_object + command.response_representation = Google::Apis::DataprocV1beta2::AutoscalingPolicy::Representation + command.response_class = Google::Apis::DataprocV1beta2::AutoscalingPolicy + 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 + # Creates a cluster in a project. # @param [String] project_id # Required. The ID of the Google Cloud Platform project that the cluster belongs @@ -760,6 +1323,10 @@ module Google # config.lifecycle_config.idle_delete_ttlUpdate Idle TTL duration # + # + # config.autoscaling_config.policy_uriUse, stop using, or change + # autoscaling policies + # # # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index b148a0d7e..08db07ca2 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20190223' + REVISION = '20190304' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 98b9308cd..bbdd8d436 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -1217,7 +1217,8 @@ module Google # @return [String] attr_accessor :department - # The domain name associated with the organization; for example, `google.com`. + # The domain name associated with the organization; for example, + # `google.com`. # Corresponds to the JSON property `domain` # @return [String] attr_accessor :domain @@ -1674,8 +1675,8 @@ module Google class PhoneNumber include Google::Apis::Core::Hashable - # The read-only canonicalized [ITU-T E.164](https://law.resource.org/pub/us/cfr/ - # ibr/004/itu-t.E.164.1.2008.pdf) + # The read-only canonicalized [ITU-T + # E.164](https://law.resource.org/pub/us/cfr/ibr/004/itu-t.E.164.1.2008.pdf) # form of the phone number. # Corresponds to the JSON property `canonicalForm` # @return [String] diff --git a/generated/google/apis/script_v1.rb b/generated/google/apis/script_v1.rb index 5f3192da2..e71abaa95 100644 --- a/generated/google/apis/script_v1.rb +++ b/generated/google/apis/script_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/apps-script/api/ module ScriptV1 VERSION = 'V1' - REVISION = '20190131' + REVISION = '20190303' # Read, compose, send, and permanently delete all your email from Gmail AUTH_SCOPE = 'https://mail.google.com/' diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index ed0f4bf19..e7a4fd357 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -533,11 +533,6 @@ module Google # @return [String] attr_accessor :duration - # User-facing name for the user executing the script. - # Corresponds to the JSON property `executingUser` - # @return [String] - attr_accessor :executing_user - # Name of the function the started the execution. # Corresponds to the JSON property `functionName` # @return [String] @@ -575,7 +570,6 @@ module Google # Update properties of this object def update!(**args) @duration = args[:duration] if args.key?(:duration) - @executing_user = args[:executing_user] if args.key?(:executing_user) @function_name = args[:function_name] if args.key?(:function_name) @process_status = args[:process_status] if args.key?(:process_status) @process_type = args[:process_type] if args.key?(:process_type) diff --git a/generated/google/apis/script_v1/representations.rb b/generated/google/apis/script_v1/representations.rb index 6ffd9a980..e2bc6986a 100644 --- a/generated/google/apis/script_v1/representations.rb +++ b/generated/google/apis/script_v1/representations.rb @@ -354,7 +354,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :duration, as: 'duration' - property :executing_user, as: 'executingUser' property :function_name, as: 'functionName' property :process_status, as: 'processStatus' property :process_type, as: 'processType' diff --git a/generated/google/apis/streetviewpublish_v1.rb b/generated/google/apis/streetviewpublish_v1.rb index 07f1e0de3..0ff402b4b 100644 --- a/generated/google/apis/streetviewpublish_v1.rb +++ b/generated/google/apis/streetviewpublish_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://developers.google.com/streetview/publish/ module StreetviewpublishV1 VERSION = 'V1' - REVISION = '20181204' + REVISION = '20190304' # Publish and manage your 360 photos on Google Street View AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish' diff --git a/generated/google/apis/streetviewpublish_v1/classes.rb b/generated/google/apis/streetviewpublish_v1/classes.rb index 01e8d27ec..c7984673a 100644 --- a/generated/google/apis/streetviewpublish_v1/classes.rb +++ b/generated/google/apis/streetviewpublish_v1/classes.rb @@ -26,8 +26,8 @@ module Google class BatchDeletePhotosRequest include Google::Apis::Core::Hashable - # Required. IDs of the Photos. For HTTP - # GET requests, the URL query parameter should be + # Required. IDs of the Photos. HTTP + # GET requests require the following syntax for the URL query parameter: # `photoIds=&photoIds=&...`. # Corresponds to the JSON property `photoIds` # @return [Array] @@ -235,9 +235,9 @@ module Google # @return [String] attr_accessor :next_page_token - # List of photos. The maximum number of items returned is based on the + # List of photos. The # pageSize field - # in the request. + # in the request determines the number of items returned. # Corresponds to the JSON property `photos` # @return [Array] attr_accessor :photos @@ -377,7 +377,7 @@ module Google attr_accessor :download_url # Output only. Status in Google Maps, whether this photo was published, or - # rejected for a possibly specified reason. + # rejected. # Corresponds to the JSON property `mapsPublishStatus` # @return [String] attr_accessor :maps_publish_status @@ -721,7 +721,7 @@ module Google # Mask that identifies fields on the photo metadata to update. # If not present, the old Photo - # metadata will be entirely replaced with the + # metadata is entirely replaced with the # new Photo metadata in this request. # The update fails if invalid fields are specified. Multiple fields can be # specified in a comma-delimited list. @@ -734,13 +734,13 @@ module Google # * `pose.altitude` # * `connections` # * `places` - # # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask diff --git a/generated/google/apis/streetviewpublish_v1/service.rb b/generated/google/apis/streetviewpublish_v1/service.rb index 1015cc1ad..aa9d579b3 100644 --- a/generated/google/apis/streetviewpublish_v1/service.rb +++ b/generated/google/apis/streetviewpublish_v1/service.rb @@ -57,9 +57,8 @@ module Google # Currently, the only way to set heading, pitch, and roll in CreatePhoto is # through the [Photo Sphere XMP # metadata](https://developers.google.com/streetview/spherical-metadata) in - # the photo bytes. The `pose.heading`, `pose.pitch`, `pose.roll`, - # `pose.altitude`, and `pose.level` fields in Pose are ignored for - # CreatePhoto. + # the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, + # `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. # This method returns the following error codes: # * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if # the uploaded photo is not a 360 photo. @@ -145,7 +144,7 @@ module Google # information, see # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # If language_code is unspecified, the user's language preference for Google - # services will be used. + # services is used. # @param [String] view # Specifies if a download URL for the photo bytes should be returned in the # Photo response. @@ -178,20 +177,21 @@ module Google execute_or_queue_command(command, &block) end - # Creates an upload session to start uploading photo bytes. The upload URL of - # the returned UploadRef is used to - # upload the bytes for the Photo. + # Creates an upload session to start uploading photo bytes. The method uses + # the upload URL of the returned + # UploadRef to upload the bytes for + # the Photo. # In addition to the photo requirements shown in # https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, - # the photo must also meet the following requirements: + # the photo must meet the following requirements: # * Photo Sphere XMP metadata must be included in the photo medadata. See # https://developers.google.com/streetview/spherical-metadata for the # required fields. # * The pixel size of the photo must meet the size requirements listed in # https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and # the photo must be a full 360 horizontally. - # After the upload is complete, the - # UploadRef is used with + # After the upload completes, the method uses + # UploadRef with # CreatePhoto # to create the Photo object entry. # @param [Google::Apis::StreetviewpublishV1::Empty] empty_object @@ -230,10 +230,6 @@ module Google # updateMask # field are used. If `updateMask` is not present, the update applies to all # fields. - # # This method returns the following error codes: # * google.rpc.Code.PERMISSION_DENIED if the requesting user did not # create the requested photo. @@ -247,7 +243,7 @@ module Google # @param [String] update_mask # Mask that identifies fields on the photo metadata to update. # If not present, the old Photo - # metadata will be entirely replaced with the + # metadata is entirely replaced with the # new Photo metadata in this request. # The update fails if invalid fields are specified. Multiple fields can be # specified in a comma-delimited list. @@ -260,13 +256,13 @@ module Google # * `pose.altitude` # * `connections` # * `places` - # # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -301,11 +297,11 @@ module Google # metadata. # Note that if # BatchDeletePhotos - # fails, either critical fields are missing or there was an authentication + # fails, either critical fields are missing or there is an authentication # error. Even if # BatchDeletePhotos - # succeeds, there may have been failures for single photos in the batch. - # These failures will be specified in each + # succeeds, individual photos in the batch may have failures. + # These failures are specified in each # PhotoResponse.status # in # BatchDeletePhotosResponse.results. @@ -345,11 +341,11 @@ module Google # Photo batch. # Note that if # BatchGetPhotos - # fails, either critical fields are missing or there was an authentication + # fails, either critical fields are missing or there is an authentication # error. Even if # BatchGetPhotos - # succeeds, there may have been failures for single photos in the batch. - # These failures will be specified in each + # succeeds, individual photos in the batch may have failures. + # These failures are specified in each # PhotoResponse.status # in # BatchGetPhotosResponse.results. @@ -361,7 +357,7 @@ module Google # information, see # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # If language_code is unspecified, the user's language preference for Google - # services will be used. + # services is used. # @param [Array, String] photo_ids # Required. IDs of the Photos. For HTTP # GET requests, the URL query parameter should be @@ -403,11 +399,11 @@ module Google # is not supported. # Note that if # BatchUpdatePhotos - # fails, either critical fields are missing or there was an authentication + # fails, either critical fields are missing or there is an authentication # error. Even if # BatchUpdatePhotos - # succeeds, there may have been failures for single photos in the batch. - # These failures will be specified in each + # succeeds, individual photos in the batch may have failures. + # These failures are specified in each # PhotoResponse.status # in # BatchUpdatePhotosResponse.results. @@ -468,11 +464,11 @@ module Google # information, see # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. # If language_code is unspecified, the user's language preference for Google - # services will be used. + # services is used. # @param [Fixnum] page_size # The maximum number of photos to return. # `pageSize` must be non-negative. If `pageSize` is zero or is not provided, - # the default page size of 100 will be used. + # the default page size of 100 is used. # The number of photos returned in the response may be less than `pageSize` # if the number of photos that belong to the user is less than `pageSize`. # @param [String] page_token