diff --git a/api_names_out.yaml b/api_names_out.yaml index 5181c98c1..a23da71cf 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -10678,6 +10678,7 @@ "/apigee:v1/GoogleCloudApigeeV1AccessSet/name": name "/apigee:v1/GoogleCloudApigeeV1AccessSet/success": success "/apigee:v1/GoogleCloudApigeeV1AccessSet/value": value +"/apigee:v1/GoogleCloudApigeeV1ActivateNatAddressRequest": google_cloud_apigee_v1_activate_nat_address_request "/apigee:v1/GoogleCloudApigeeV1Alias": google_cloud_apigee_v1_alias "/apigee:v1/GoogleCloudApigeeV1Alias/alias": alias "/apigee:v1/GoogleCloudApigeeV1Alias/certsInfo": certs_info @@ -11246,6 +11247,10 @@ "/apigee:v1/GoogleCloudApigeeV1ListInstancesResponse/instances": instances "/apigee:v1/GoogleCloudApigeeV1ListInstancesResponse/instances/instance": instance "/apigee:v1/GoogleCloudApigeeV1ListInstancesResponse/nextPageToken": next_page_token +"/apigee:v1/GoogleCloudApigeeV1ListNatAddressesResponse": google_cloud_apigee_v1_list_nat_addresses_response +"/apigee:v1/GoogleCloudApigeeV1ListNatAddressesResponse/natAddresses": nat_addresses +"/apigee:v1/GoogleCloudApigeeV1ListNatAddressesResponse/natAddresses/nat_address": nat_address +"/apigee:v1/GoogleCloudApigeeV1ListNatAddressesResponse/nextPageToken": next_page_token "/apigee:v1/GoogleCloudApigeeV1ListOfDevelopersResponse": google_cloud_apigee_v1_list_of_developers_response "/apigee:v1/GoogleCloudApigeeV1ListOfDevelopersResponse/developer": developer "/apigee:v1/GoogleCloudApigeeV1ListOfDevelopersResponse/developer/developer": developer @@ -11264,6 +11269,10 @@ "/apigee:v1/GoogleCloudApigeeV1Metric/name": name "/apigee:v1/GoogleCloudApigeeV1Metric/values": values "/apigee:v1/GoogleCloudApigeeV1Metric/values/value": value +"/apigee:v1/GoogleCloudApigeeV1NatAddress": google_cloud_apigee_v1_nat_address +"/apigee:v1/GoogleCloudApigeeV1NatAddress/ipAddress": ip_address +"/apigee:v1/GoogleCloudApigeeV1NatAddress/name": name +"/apigee:v1/GoogleCloudApigeeV1NatAddress/state": state "/apigee:v1/GoogleCloudApigeeV1Operation": google_cloud_apigee_v1_operation "/apigee:v1/GoogleCloudApigeeV1Operation/methods": methods_prop "/apigee:v1/GoogleCloudApigeeV1Operation/methods/methods_prop": methods_prop @@ -11741,6 +11750,8 @@ "/apigee:v1/apigee.organizations.datacollectors.patch": patch_organization_datacollector "/apigee:v1/apigee.organizations.datacollectors.patch/name": name "/apigee:v1/apigee.organizations.datacollectors.patch/updateMask": update_mask +"/apigee:v1/apigee.organizations.delete": delete_organization +"/apigee:v1/apigee.organizations.delete/name": name "/apigee:v1/apigee.organizations.deployments.list": list_organization_deployments "/apigee:v1/apigee.organizations.deployments.list/parent": parent "/apigee:v1/apigee.organizations.deployments.list/sharedFlows": shared_flows @@ -12121,6 +12132,18 @@ "/apigee:v1/apigee.organizations.instances.list/pageSize": page_size "/apigee:v1/apigee.organizations.instances.list/pageToken": page_token "/apigee:v1/apigee.organizations.instances.list/parent": parent +"/apigee:v1/apigee.organizations.instances.natAddresses.activate": activate_organization_instance_nat_address +"/apigee:v1/apigee.organizations.instances.natAddresses.activate/name": name +"/apigee:v1/apigee.organizations.instances.natAddresses.create": create_organization_instance_nat_address +"/apigee:v1/apigee.organizations.instances.natAddresses.create/parent": parent +"/apigee:v1/apigee.organizations.instances.natAddresses.delete": delete_organization_instance_nat_address +"/apigee:v1/apigee.organizations.instances.natAddresses.delete/name": name +"/apigee:v1/apigee.organizations.instances.natAddresses.get": get_organization_instance_nat_address +"/apigee:v1/apigee.organizations.instances.natAddresses.get/name": name +"/apigee:v1/apigee.organizations.instances.natAddresses.list": list_organization_instance_nat_addresses +"/apigee:v1/apigee.organizations.instances.natAddresses.list/pageSize": page_size +"/apigee:v1/apigee.organizations.instances.natAddresses.list/pageToken": page_token +"/apigee:v1/apigee.organizations.instances.natAddresses.list/parent": parent "/apigee:v1/apigee.organizations.instances.reportStatus": report_organization_instance_status "/apigee:v1/apigee.organizations.instances.reportStatus/instance": instance "/apigee:v1/apigee.organizations.keyvaluemaps.create": create_organization_keyvaluemap diff --git a/generated/google/apis/apigee_v1.rb b/generated/google/apis/apigee_v1.rb index 659635841..aef198dbf 100644 --- a/generated/google/apis/apigee_v1.rb +++ b/generated/google/apis/apigee_v1.rb @@ -29,7 +29,7 @@ module Google # @see https://cloud.google.com/apigee-api-management/ module ApigeeV1 VERSION = 'V1' - REVISION = '20201117' + REVISION = '20201203' # 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/apigee_v1/classes.rb b/generated/google/apis/apigee_v1/classes.rb index 9deac0a65..f6d6cb7ba 100644 --- a/generated/google/apis/apigee_v1/classes.rb +++ b/generated/google/apis/apigee_v1/classes.rb @@ -190,6 +190,19 @@ module Google end end + # Request for ActivateNatAddressRequest. Activate the nat address request. + class GoogleCloudApigeeV1ActivateNatAddressRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A reference to a certificate or key, certificate pair. class GoogleCloudApigeeV1Alias include Google::Apis::Core::Hashable @@ -3797,6 +3810,32 @@ module Google end end + # Response for ListNatAddresses. + class GoogleCloudApigeeV1ListNatAddressesResponse + include Google::Apis::Core::Hashable + + # List of NAT Addresses for the instance. + # Corresponds to the JSON property `natAddresses` + # @return [Array] + attr_accessor :nat_addresses + + # Page token that you can include in a ListNatAddresses request to retrieve the + # next page of content. If omitted, no subsequent pages exist. + # 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) + @nat_addresses = args[:nat_addresses] if args.key?(:nat_addresses) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # class GoogleCloudApigeeV1ListOfDevelopersResponse include Google::Apis::Core::Hashable @@ -3911,6 +3950,38 @@ module Google end end + # Apigee NAT(network address translation) address. A NAT address is a static + # external IP address used for Internet egress traffic. + class GoogleCloudApigeeV1NatAddress + include Google::Apis::Core::Hashable + + # Required. The static IPV4 address. + # Corresponds to the JSON property `ipAddress` + # @return [String] + attr_accessor :ip_address + + # Required. Resource ID of the NAT address. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. State of the nat address. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @name = args[:name] if args.key?(:name) + @state = args[:state] if args.key?(:state) + end + end + # Operation represents the pairing of REST resource path and the actions (verbs) # allowed on the resource path. class GoogleCloudApigeeV1Operation diff --git a/generated/google/apis/apigee_v1/representations.rb b/generated/google/apis/apigee_v1/representations.rb index 344421af4..b9e1c249b 100644 --- a/generated/google/apis/apigee_v1/representations.rb +++ b/generated/google/apis/apigee_v1/representations.rb @@ -52,6 +52,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ActivateNatAddressRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Alias class Representation < Google::Apis::Core::JsonRepresentation; end @@ -544,6 +550,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1ListNatAddressesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1ListOfDevelopersResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +586,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApigeeV1NatAddress + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApigeeV1Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1016,6 +1034,12 @@ module Google end end + class GoogleCloudApigeeV1ActivateNatAddressRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudApigeeV1Alias # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1966,6 +1990,15 @@ module Google end end + class GoogleCloudApigeeV1ListNatAddressesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :nat_addresses, as: 'natAddresses', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class GoogleCloudApigeeV1ListOfDevelopersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2006,6 +2039,15 @@ module Google end end + class GoogleCloudApigeeV1NatAddress + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ip_address, as: 'ipAddress' + property :name, as: 'name' + property :state, as: 'state' + end + end + class GoogleCloudApigeeV1Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/apigee_v1/service.rb b/generated/google/apis/apigee_v1/service.rb index 329e18921..2b4d2db8c 100644 --- a/generated/google/apis/apigee_v1/service.rb +++ b/generated/google/apis/apigee_v1/service.rb @@ -119,6 +119,37 @@ module Google execute_or_queue_command(command, &block) end + # Delete an Apigee organization. Only supported for SubscriptionType TRIAL. + # @param [String] name + # Required. Name of the organization. Use the following structure in your + # request: `organizations/`org`` + # @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::ApigeeV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::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 delete_organization(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::ApigeeV1::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 + # Gets the profile for an Apigee organization. See [Understanding organizations]( # https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization- # structure). @@ -6394,6 +6425,181 @@ module Google execute_or_queue_command(command, &block) end + # Activates the NAT address. The Apigee instance can now use this for Internet + # egress traffic. **Note:** Not supported for Apigee hybrid. + # @param [String] name + # Required. Name of the nat address. Use the following structure in your request: + # `organizations/`org`/instances/`instances`/natAddresses/`nataddress``` + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ActivateNatAddressRequest] google_cloud_apigee_v1_activate_nat_address_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::ApigeeV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::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 activate_organization_instance_nat_address(name, google_cloud_apigee_v1_activate_nat_address_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:activate', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ActivateNatAddressRequest::Representation + command.request_object = google_cloud_apigee_v1_activate_nat_address_request_object + command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::ApigeeV1::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 NAT address. The address is created in the RESERVED state and a + # static external IP address will be provisioned. At this time, the instance + # will not use this IP address for Internet egress traffic. The address can be + # activated for use once any required firewall IP whitelisting has been + # completed. **Note:** Not supported for Apigee hybrid. + # @param [String] parent + # Required. Name of the instance. Use the following structure in your request: ` + # organizations/`org`/instances/`instance`` + # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress] google_cloud_apigee_v1_nat_address_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::ApigeeV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::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_organization_instance_nat_address(parent, google_cloud_apigee_v1_nat_address_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/natAddresses', options) + command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress::Representation + command.request_object = google_cloud_apigee_v1_nat_address_object + command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::ApigeeV1::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 + + # Deletes the NAT address. Connections that are actively using the address are + # drained before it is removed. **Note:** Not supported for Apigee hybrid. + # @param [String] name + # Required. Name of the nat address. Use the following structure in your request: + # `organizations/`org`/instances/`instances`/natAddresses/`nataddress``` + # @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::ApigeeV1::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::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 delete_organization_instance_nat_address(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::ApigeeV1::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 + + # Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid. + # @param [String] name + # Required. Name of the nat address. Use the following structure in your request: + # `organizations/`org`/instances/`instances`/natAddresses/`nataddress`` + # @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::ApigeeV1::GoogleCloudApigeeV1NatAddress] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress] + # + # @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_organization_instance_nat_address(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1NatAddress + 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 the NAT addresses for an Apigee instance. **Note:** Not supported for + # Apigee hybrid. + # @param [String] parent + # Required. Name of the instance. Use the following structure in your request: ` + # organizations/`org`/instances/`instance`` + # @param [Fixnum] page_size + # Maximum number of natAddresses to return. Defaults to 25. + # @param [String] page_token + # Page token, returned from a previous ListNatAddresses call, that you can use + # to retrieve the next page of content. + # @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::ApigeeV1::GoogleCloudApigeeV1ListNatAddressesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListNatAddressesResponse] + # + # @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_organization_instance_nat_addresses(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/natAddresses', options) + command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListNatAddressesResponse::Representation + command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListNatAddressesResponse + 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 + # Creates a key value map in an organization. # @param [String] parent # Required. The name of the organization in which to create the key value map diff --git a/generated/google/apis/apigee_v1/synth.metadata b/generated/google/apis/apigee_v1/synth.metadata index 2e6639861..45bc41e66 100644 --- a/generated/google/apis/apigee_v1/synth.metadata +++ b/generated/google/apis/apigee_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "93d0d7eb836f16297553a4568aefca39bd6bfd25" + "sha": "df748da8408420990373c79e5d72e35019682d7f" } } ]