google-apis-apigee_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApigeeV1
18
18
  # Version of the google-apis-apigee_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201231"
25
+ REVISION = "20210305"
26
26
  end
27
27
  end
28
28
  end
@@ -574,6 +574,12 @@ module Google
574
574
  include Google::Apis::Core::JsonObjectSupport
575
575
  end
576
576
 
577
+ class GoogleCloudApigeeV1ListTraceConfigOverridesResponse
578
+ class Representation < Google::Apis::Core::JsonRepresentation; end
579
+
580
+ include Google::Apis::Core::JsonObjectSupport
581
+ end
582
+
577
583
  class GoogleCloudApigeeV1Metadata
578
584
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
585
 
@@ -898,6 +904,24 @@ module Google
898
904
  include Google::Apis::Core::JsonObjectSupport
899
905
  end
900
906
 
907
+ class GoogleCloudApigeeV1TraceConfig
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
913
+ class GoogleCloudApigeeV1TraceConfigOverride
914
+ class Representation < Google::Apis::Core::JsonRepresentation; end
915
+
916
+ include Google::Apis::Core::JsonObjectSupport
917
+ end
918
+
919
+ class GoogleCloudApigeeV1TraceSamplingConfig
920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
921
+
922
+ include Google::Apis::Core::JsonObjectSupport
923
+ end
924
+
901
925
  class GoogleCloudApigeeV1UpdateError
902
926
  class Representation < Google::Apis::Core::JsonRepresentation; end
903
927
 
@@ -1584,6 +1608,7 @@ module Google
1584
1608
  property :consumer_key, as: 'consumerKey'
1585
1609
  property :consumer_secret, as: 'consumerSecret'
1586
1610
  property :expires_at, :numeric_string => true, as: 'expiresAt'
1611
+ property :expires_in_seconds, :numeric_string => true, as: 'expiresInSeconds'
1587
1612
  property :issued_at, :numeric_string => true, as: 'issuedAt'
1588
1613
  collection :scopes, as: 'scopes'
1589
1614
  property :status, as: 'status'
@@ -1618,6 +1643,7 @@ module Google
1618
1643
  property :name, as: 'name'
1619
1644
  property :properties, as: 'properties', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties::Representation
1620
1645
 
1646
+ property :state, as: 'state'
1621
1647
  end
1622
1648
  end
1623
1649
 
@@ -1660,6 +1686,7 @@ module Google
1660
1686
  collection :hostnames, as: 'hostnames'
1661
1687
  property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
1662
1688
  property :name, as: 'name'
1689
+ property :state, as: 'state'
1663
1690
  end
1664
1691
  end
1665
1692
 
@@ -1760,6 +1787,7 @@ module Google
1760
1787
  property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
1761
1788
  property :location, as: 'location'
1762
1789
  property :name, as: 'name'
1790
+ property :peering_cidr_range, as: 'peeringCidrRange'
1763
1791
  property :port, as: 'port'
1764
1792
  property :state, as: 'state'
1765
1793
  end
@@ -2023,6 +2051,15 @@ module Google
2023
2051
  end
2024
2052
  end
2025
2053
 
2054
+ class GoogleCloudApigeeV1ListTraceConfigOverridesResponse
2055
+ # @private
2056
+ class Representation < Google::Apis::Core::JsonRepresentation
2057
+ property :next_page_token, as: 'nextPageToken'
2058
+ collection :trace_config_overrides, as: 'traceConfigOverrides', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
2059
+
2060
+ end
2061
+ end
2062
+
2026
2063
  class GoogleCloudApigeeV1Metadata
2027
2064
  # @private
2028
2065
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2120,12 +2157,14 @@ module Google
2120
2157
  property :analytics_region, as: 'analyticsRegion'
2121
2158
  collection :attributes, as: 'attributes'
2122
2159
  property :authorized_network, as: 'authorizedNetwork'
2160
+ property :billing_type, as: 'billingType'
2123
2161
  property :ca_certificate, :base64 => true, as: 'caCertificate'
2124
2162
  property :created_at, :numeric_string => true, as: 'createdAt'
2125
2163
  property :customer_name, as: 'customerName'
2126
2164
  property :description, as: 'description'
2127
2165
  property :display_name, as: 'displayName'
2128
2166
  collection :environments, as: 'environments'
2167
+ property :expires_at, :numeric_string => true, as: 'expiresAt'
2129
2168
  property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
2130
2169
  property :name, as: 'name'
2131
2170
  property :project_id, as: 'projectId'
@@ -2133,6 +2172,7 @@ module Google
2133
2172
 
2134
2173
  property :runtime_database_encryption_key_name, as: 'runtimeDatabaseEncryptionKeyName'
2135
2174
  property :runtime_type, as: 'runtimeType'
2175
+ property :state, as: 'state'
2136
2176
  property :subscription_type, as: 'subscriptionType'
2137
2177
  property :type, as: 'type'
2138
2178
  end
@@ -2600,6 +2640,34 @@ module Google
2600
2640
  end
2601
2641
  end
2602
2642
 
2643
+ class GoogleCloudApigeeV1TraceConfig
2644
+ # @private
2645
+ class Representation < Google::Apis::Core::JsonRepresentation
2646
+ property :endpoint, as: 'endpoint'
2647
+ property :exporter, as: 'exporter'
2648
+ property :sampling_config, as: 'samplingConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceSamplingConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceSamplingConfig::Representation
2649
+
2650
+ end
2651
+ end
2652
+
2653
+ class GoogleCloudApigeeV1TraceConfigOverride
2654
+ # @private
2655
+ class Representation < Google::Apis::Core::JsonRepresentation
2656
+ property :api_proxy, as: 'apiProxy'
2657
+ property :name, as: 'name'
2658
+ property :sampling_config, as: 'samplingConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceSamplingConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceSamplingConfig::Representation
2659
+
2660
+ end
2661
+ end
2662
+
2663
+ class GoogleCloudApigeeV1TraceSamplingConfig
2664
+ # @private
2665
+ class Representation < Google::Apis::Core::JsonRepresentation
2666
+ property :sampler, as: 'sampler'
2667
+ property :sampling_rate, as: 'samplingRate'
2668
+ end
2669
+ end
2670
+
2603
2671
  class GoogleCloudApigeeV1UpdateError
2604
2672
  # @private
2605
2673
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,8 +25,7 @@ module Google
25
25
  # Use the Apigee API to programmatically develop and manage APIs with a set of
26
26
  # RESTful operations. Develop and secure API proxies, deploy and undeploy API
27
27
  # proxy revisions, monitor APIs, configure environments, manage users, and more.
28
- # Get started using the APIs. *Note:* This product is available as a free trial
29
- # for a time period of 60 days.
28
+ # Note: This product is available as a free trial for a time period of 60 days.
30
29
  #
31
30
  # @example
32
31
  # require 'google/apis/apigee_v1'
@@ -1255,12 +1254,11 @@ module Google
1255
1254
  end
1256
1255
 
1257
1256
  # Gets an API proxy revision. To download the API proxy configuration bundle for
1258
- # the specified revision as a zip file, do the following: * Set the `format`
1259
- # query parameter to `bundle`. * Set the `Accept` header to `application/zip`.
1260
- # If you are using curl, specify `-o filename.zip` to save the output to a file;
1261
- # otherwise, it displays to `stdout`. Then, develop the API proxy configuration
1262
- # locally and upload the updated API proxy configuration revision, as described
1263
- # in [updateApiProxyRevision](updateApiProxyRevision).
1257
+ # the specified revision as a zip file, set the `format` query parameter to `
1258
+ # bundle`. If you are using curl, specify `-o filename.zip` to save the output
1259
+ # to a file; otherwise, it displays to `stdout`. Then, develop the API proxy
1260
+ # configuration locally and upload the updated API proxy configuration revision,
1261
+ # as described in [updateApiProxyRevision](updateApiProxyRevision).
1264
1262
  # @param [String] name
1265
1263
  # Required. API proxy revision in the following format: `organizations/`org`/
1266
1264
  # apis/`api`/revisions/`rev``
@@ -3374,6 +3372,37 @@ module Google
3374
3372
  execute_or_queue_command(command, &block)
3375
3373
  end
3376
3374
 
3375
+ # Get distributed trace configuration in an environment.
3376
+ # @param [String] name
3377
+ # Required. Name of the trace configuration. Use the following structure in your
3378
+ # request: "organizations/*/environments/*/traceConfig".
3379
+ # @param [String] fields
3380
+ # Selector specifying which fields to include in a partial response.
3381
+ # @param [String] quota_user
3382
+ # Available to use for quota purposes for server-side applications. Can be any
3383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3384
+ # @param [Google::Apis::RequestOptions] options
3385
+ # Request-specific options
3386
+ #
3387
+ # @yield [result, err] Result & error if block supplied
3388
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig] parsed result object
3389
+ # @yieldparam err [StandardError] error object if request failed
3390
+ #
3391
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig]
3392
+ #
3393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3396
+ def get_organization_environment_trace_config(name, fields: nil, quota_user: nil, options: nil, &block)
3397
+ command = make_simple_command(:get, 'v1/{+name}', options)
3398
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig::Representation
3399
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig
3400
+ command.params['name'] = name unless name.nil?
3401
+ command.query['fields'] = fields unless fields.nil?
3402
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3403
+ execute_or_queue_command(command, &block)
3404
+ end
3405
+
3377
3406
  # Sets the IAM policy on an environment, if the policy already exists it will be
3378
3407
  # replaced. For more information, see [Manage users, roles, and permissions
3379
3408
  # using the API](https://cloud.google.com/apigee/docs/api-platform/system-
@@ -3632,6 +3661,45 @@ module Google
3632
3661
  execute_or_queue_command(command, &block)
3633
3662
  end
3634
3663
 
3664
+ # Updates the trace configurations in an environment. Note that the repeated
3665
+ # fields have replace semantics when included in the field mask and that they
3666
+ # will be overwritten by the value of the fields in the request body.
3667
+ # @param [String] name
3668
+ # Required. Name of the trace configuration. Use the following structure in your
3669
+ # request: "organizations/*/environments/*/traceConfig".
3670
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig] google_cloud_apigee_v1_trace_config_object
3671
+ # @param [String] update_mask
3672
+ # List of fields to be updated.
3673
+ # @param [String] fields
3674
+ # Selector specifying which fields to include in a partial response.
3675
+ # @param [String] quota_user
3676
+ # Available to use for quota purposes for server-side applications. Can be any
3677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3678
+ # @param [Google::Apis::RequestOptions] options
3679
+ # Request-specific options
3680
+ #
3681
+ # @yield [result, err] Result & error if block supplied
3682
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig] parsed result object
3683
+ # @yieldparam err [StandardError] error object if request failed
3684
+ #
3685
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig]
3686
+ #
3687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3690
+ def update_organization_environment_trace_config(name, google_cloud_apigee_v1_trace_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3691
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3692
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig::Representation
3693
+ command.request_object = google_cloud_apigee_v1_trace_config_object
3694
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig::Representation
3695
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfig
3696
+ command.params['name'] = name unless name.nil?
3697
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3698
+ command.query['fields'] = fields unless fields.nil?
3699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3700
+ execute_or_queue_command(command, &block)
3701
+ end
3702
+
3635
3703
  # Get a list of metrics and dimensions which can be used for creating analytics
3636
3704
  # queries and reports. Each schema element contains the name of the field with
3637
3705
  # its associated type and if it is either custom field or standard field.
@@ -3816,21 +3884,23 @@ module Google
3816
3884
  # organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
3817
3885
  # @param [Boolean] override
3818
3886
  # Flag that specifies whether the new deployment replaces other deployed
3819
- # revisions of the API proxy in the environment. Set override to true to replace
3820
- # other deployed revisions. By default, override is false and the deployment is
3821
- # rejected if other revisions of the API proxy are deployed in the environment.
3887
+ # revisions of the API proxy in the environment. Set `override` to `true` to
3888
+ # replace other deployed revisions. By default, `override` is `false` and the
3889
+ # deployment is rejected if other revisions of the API proxy are deployed in the
3890
+ # environment.
3822
3891
  # @param [Boolean] sequenced_rollout
3823
- # If true, a best-effort attempt will be made to roll out the routing rules
3824
- # corresponding to this deployment and the environment changes to add this
3825
- # deployment in a safe order. This reduces the risk of downtime that could be
3826
- # caused by changing the environment group's routing before the new destination
3827
- # for the affected traffic is ready to receive it. This should only be necessary
3828
- # if the new deployment will be capturing traffic from another environment under
3829
- # a shared environment group or if traffic will be rerouted to a different
3830
- # environment due to a basepath removal. The GenerateDeployChangeReport API may
3831
- # be used to examine routing changes before issuing the deployment request, and
3832
- # its response will indicate if a sequenced rollout is recommended for the
3833
- # deployment.
3892
+ # Flag that specifies whether to enable sequenced rollout. If set to `true`, a
3893
+ # best-effort attempt will be made to roll out the routing rules corresponding
3894
+ # to this deployment and the environment changes to add this deployment in a
3895
+ # safe order. This reduces the risk of downtime that could be caused by changing
3896
+ # the environment group's routing before the new destination for the affected
3897
+ # traffic is ready to receive it. This should only be necessary if the new
3898
+ # deployment will be capturing traffic from another environment under a shared
3899
+ # environment group or if traffic will be rerouted to a different environment
3900
+ # due to a base path removal. The [GenerateDeployChangeReport API](
3901
+ # GenerateDeployChangeReport) may be used to examine routing changes before
3902
+ # issuing the deployment request, and its response will indicate if a sequenced
3903
+ # rollout is recommended for the deployment.
3834
3904
  # @param [String] fields
3835
3905
  # Selector specifying which fields to include in a partial response.
3836
3906
  # @param [String] quota_user
@@ -3902,14 +3972,16 @@ module Google
3902
3972
  # Required. Name of the API proxy revision deployment in the following format: `
3903
3973
  # organizations/`org`/environments/`env`/apis/`api`/revisions/`rev``
3904
3974
  # @param [Boolean] sequenced_rollout
3905
- # If true, a best-effort attempt will be made to remove the environment group
3906
- # routing rules corresponding to this deployment before removing the deployment
3907
- # from the runtime. This is likely to be a rare use case; it is only needed when
3908
- # the intended effect of undeploying this proxy is to cause the traffic it
3909
- # currently handles to be rerouted to some other existing proxy in the
3910
- # environment group. The GenerateUndeployChangeReport API may be used to examine
3911
- # routing changes before issuing the undeployment request, and its response will
3912
- # indicate if a sequenced rollout is recommended for the undeployment.
3975
+ # Flag that specifies whether to enable sequenced rollout. If set to `true`, a
3976
+ # best-effort attempt will be made to remove the environment group routing rules
3977
+ # corresponding to this deployment before removing the deployment from the
3978
+ # runtime. This is likely to be a rare use case; it is only needed when the
3979
+ # intended effect of undeploying this proxy is to cause the traffic it currently
3980
+ # handles to be rerouted to some other existing proxy in the environment group.
3981
+ # The [GenerateUndeployChangeReport API](GenerateUndeployChangeReport) may be
3982
+ # used to examine routing changes before issuing the undeployment request, and
3983
+ # its response will indicate if a sequenced rollout is recommended for the
3984
+ # undeployment.
3913
3985
  # @param [String] fields
3914
3986
  # Selector specifying which fields to include in a partial response.
3915
3987
  # @param [String] quota_user
@@ -4778,10 +4850,10 @@ module Google
4778
4850
  # @param [String] name
4779
4851
  # Required. The resource name for which the interactive query will be executed.
4780
4852
  # Must be of the form `organizations/`organization_id`/environments/`
4781
- # environment_id/stats/`dimensions`` Dimensions let you view metrics in
4853
+ # environment_id/optimizedStats/`dimensions`` Dimensions let you view metrics in
4782
4854
  # meaningful groupings. E.g. apiproxy, target_host. The value of dimensions
4783
4855
  # should be comma separated list as shown below `organizations/`org`/
4784
- # environments/`env`/stats/apiproxy,request_verb`
4856
+ # environments/`env`/optimizedStats/apiproxy,request_verb`
4785
4857
  # @param [String] accuracy
4786
4858
  # Legacy field: not used anymore.
4787
4859
  # @param [String] agg_table
@@ -5439,12 +5511,11 @@ module Google
5439
5511
  # organizations/`org`/environments/`env`/sharedflows/`sharedflow`/revisions/`rev`
5440
5512
  # `
5441
5513
  # @param [Boolean] override
5442
- # Flag that specifies whether to force the deployment of the new revision over
5443
- # the currently deployed revision by overriding conflict checks. If an existing
5444
- # shared flow revision is deployed, to ensure seamless deployment with no
5445
- # downtime, set this parameter to `true`. In this case, hybrid deploys the new
5446
- # revision fully before undeploying the existing revision. If set to `false`,
5447
- # you must undeploy the existing revision before deploying the new revision.
5514
+ # Flag that specifies whether the new deployment replaces other deployed
5515
+ # revisions of the shared flow in the environment. Set `override` to `true` to
5516
+ # replace other deployed revisions. By default, `override` is `false` and the
5517
+ # deployment is rejected if other revisions of the shared flow are deployed in
5518
+ # the environment.
5448
5519
  # @param [String] fields
5449
5520
  # Selector specifying which fields to include in a partial response.
5450
5521
  # @param [String] quota_user
@@ -5776,6 +5847,189 @@ module Google
5776
5847
  execute_or_queue_command(command, &block)
5777
5848
  end
5778
5849
 
5850
+ # Creates a trace configuration override. The response contains a system-
5851
+ # generated UUID, that can be used to view, update, or delete the configuration
5852
+ # override. Use the List API to view the existing trace configuration overrides.
5853
+ # @param [String] parent
5854
+ # Required. Parent resource of the trace configuration override. Use the
5855
+ # following structure in your request. "organizations/*/environments/*/
5856
+ # traceConfig".
5857
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride] google_cloud_apigee_v1_trace_config_override_object
5858
+ # @param [String] fields
5859
+ # Selector specifying which fields to include in a partial response.
5860
+ # @param [String] quota_user
5861
+ # Available to use for quota purposes for server-side applications. Can be any
5862
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5863
+ # @param [Google::Apis::RequestOptions] options
5864
+ # Request-specific options
5865
+ #
5866
+ # @yield [result, err] Result & error if block supplied
5867
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride] parsed result object
5868
+ # @yieldparam err [StandardError] error object if request failed
5869
+ #
5870
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride]
5871
+ #
5872
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5873
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5874
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5875
+ def create_organization_environment_trace_config_override(parent, google_cloud_apigee_v1_trace_config_override_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5876
+ command = make_simple_command(:post, 'v1/{+parent}/overrides', options)
5877
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
5878
+ command.request_object = google_cloud_apigee_v1_trace_config_override_object
5879
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
5880
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride
5881
+ command.params['parent'] = parent unless parent.nil?
5882
+ command.query['fields'] = fields unless fields.nil?
5883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5884
+ execute_or_queue_command(command, &block)
5885
+ end
5886
+
5887
+ # Deletes a distributed trace configuration override.
5888
+ # @param [String] name
5889
+ # Required. Name of the trace configuration override. Use the following
5890
+ # structure in your request: "organizations/*/environments/*/traceConfig/
5891
+ # overrides/*".
5892
+ # @param [String] fields
5893
+ # Selector specifying which fields to include in a partial response.
5894
+ # @param [String] quota_user
5895
+ # Available to use for quota purposes for server-side applications. Can be any
5896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5897
+ # @param [Google::Apis::RequestOptions] options
5898
+ # Request-specific options
5899
+ #
5900
+ # @yield [result, err] Result & error if block supplied
5901
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleProtobufEmpty] parsed result object
5902
+ # @yieldparam err [StandardError] error object if request failed
5903
+ #
5904
+ # @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
5905
+ #
5906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5909
+ def delete_organization_environment_trace_config_override(name, fields: nil, quota_user: nil, options: nil, &block)
5910
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5911
+ command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
5912
+ command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
5913
+ command.params['name'] = name unless name.nil?
5914
+ command.query['fields'] = fields unless fields.nil?
5915
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5916
+ execute_or_queue_command(command, &block)
5917
+ end
5918
+
5919
+ # Gets a trace configuration override.
5920
+ # @param [String] name
5921
+ # Required. Name of the trace configuration override. Use the following
5922
+ # structure in your request: "organizations/*/environments/*/traceConfig/
5923
+ # overrides/*".
5924
+ # @param [String] fields
5925
+ # Selector specifying which fields to include in a partial response.
5926
+ # @param [String] quota_user
5927
+ # Available to use for quota purposes for server-side applications. Can be any
5928
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5929
+ # @param [Google::Apis::RequestOptions] options
5930
+ # Request-specific options
5931
+ #
5932
+ # @yield [result, err] Result & error if block supplied
5933
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride] parsed result object
5934
+ # @yieldparam err [StandardError] error object if request failed
5935
+ #
5936
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride]
5937
+ #
5938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5941
+ def get_organization_environment_trace_config_override(name, fields: nil, quota_user: nil, options: nil, &block)
5942
+ command = make_simple_command(:get, 'v1/{+name}', options)
5943
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
5944
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride
5945
+ command.params['name'] = name unless name.nil?
5946
+ command.query['fields'] = fields unless fields.nil?
5947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5948
+ execute_or_queue_command(command, &block)
5949
+ end
5950
+
5951
+ # Lists all of the distributed trace configuration overrides in an environment.
5952
+ # @param [String] parent
5953
+ # Required. Parent resource of the trace configuration override. Use the
5954
+ # following structure in your request: "organizations/*/environments/*/
5955
+ # traceConfig".
5956
+ # @param [Fixnum] page_size
5957
+ # Maximum number of trace configuration overrides to return. If not specified,
5958
+ # the maximum number returned is 25. The maximum number cannot exceed 100.
5959
+ # @param [String] page_token
5960
+ # A page token, returned from a previous `ListTraceConfigOverrides` call. Token
5961
+ # value that can be used to retrieve the subsequent page. When paginating, all
5962
+ # other parameters provided to `ListTraceConfigOverrides` must match those
5963
+ # specified in the call to obtain the page token.
5964
+ # @param [String] fields
5965
+ # Selector specifying which fields to include in a partial response.
5966
+ # @param [String] quota_user
5967
+ # Available to use for quota purposes for server-side applications. Can be any
5968
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5969
+ # @param [Google::Apis::RequestOptions] options
5970
+ # Request-specific options
5971
+ #
5972
+ # @yield [result, err] Result & error if block supplied
5973
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListTraceConfigOverridesResponse] parsed result object
5974
+ # @yieldparam err [StandardError] error object if request failed
5975
+ #
5976
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListTraceConfigOverridesResponse]
5977
+ #
5978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5981
+ def list_organization_environment_trace_config_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5982
+ command = make_simple_command(:get, 'v1/{+parent}/overrides', options)
5983
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListTraceConfigOverridesResponse::Representation
5984
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListTraceConfigOverridesResponse
5985
+ command.params['parent'] = parent unless parent.nil?
5986
+ command.query['pageSize'] = page_size unless page_size.nil?
5987
+ command.query['pageToken'] = page_token unless page_token.nil?
5988
+ command.query['fields'] = fields unless fields.nil?
5989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5990
+ execute_or_queue_command(command, &block)
5991
+ end
5992
+
5993
+ # Updates a distributed trace configuration override. Note that the repeated
5994
+ # fields have replace semantics when included in the field mask and that they
5995
+ # will be overwritten by the value of the fields in the request body.
5996
+ # @param [String] name
5997
+ # Required. Name of the trace configuration override. Use the following
5998
+ # structure in your request: "organizations/*/environments/*/traceConfig/
5999
+ # overrides/*".
6000
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride] google_cloud_apigee_v1_trace_config_override_object
6001
+ # @param [String] update_mask
6002
+ # List of fields to be updated.
6003
+ # @param [String] fields
6004
+ # Selector specifying which fields to include in a partial response.
6005
+ # @param [String] quota_user
6006
+ # Available to use for quota purposes for server-side applications. Can be any
6007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6008
+ # @param [Google::Apis::RequestOptions] options
6009
+ # Request-specific options
6010
+ #
6011
+ # @yield [result, err] Result & error if block supplied
6012
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride] parsed result object
6013
+ # @yieldparam err [StandardError] error object if request failed
6014
+ #
6015
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride]
6016
+ #
6017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6020
+ def patch_organization_environment_trace_config_override(name, google_cloud_apigee_v1_trace_config_override_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
6021
+ command = make_simple_command(:patch, 'v1/{+name}', options)
6022
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
6023
+ command.request_object = google_cloud_apigee_v1_trace_config_override_object
6024
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride::Representation
6025
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1TraceConfigOverride
6026
+ command.params['name'] = name unless name.nil?
6027
+ command.query['updateMask'] = update_mask unless update_mask.nil?
6028
+ command.query['fields'] = fields unless fields.nil?
6029
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6030
+ execute_or_queue_command(command, &block)
6031
+ end
6032
+
5779
6033
  # Submit a query at host level to be processed in the background. If the
5780
6034
  # submission of the query succeeds, the API returns a 201 status and an ID that
5781
6035
  # refer to the query. In addition to the HTTP status 201, the `state` of "
@@ -5973,10 +6227,10 @@ module Google
5973
6227
  # given timerange.
5974
6228
  # @param [String] name
5975
6229
  # Required. The resource name for which the interactive query will be executed.
5976
- # Must be of the form `organizations/`organization_id`/stats/`dimensions``.
6230
+ # Must be of the form `organizations/`organization_id`/hostStats/`dimensions``.
5977
6231
  # Dimensions let you view metrics in meaningful groupings. E.g. apiproxy,
5978
6232
  # target_host. The value of dimensions should be comma separated list as shown
5979
- # below `organizations/`org`/stats/apiproxy,request_verb`
6233
+ # below `organizations/`org`/hostStats/apiproxy,request_verb`
5980
6234
  # @param [String] accuracy
5981
6235
  # Legacy field: not used anymore.
5982
6236
  # @param [String] envgroup_hostname
@@ -6749,10 +7003,10 @@ module Google
6749
7003
  # This api is similar to GetHostStats except that the response is less verbose.
6750
7004
  # @param [String] name
6751
7005
  # Required. The resource name for which the interactive query will be executed.
6752
- # Must be of the form `organizations/`organization_id`/stats/`dimensions``.
6753
- # Dimensions let you view metrics in meaningful groupings. E.g. apiproxy,
6754
- # target_host. The value of dimensions should be comma separated list as shown
6755
- # below `organizations/`org`/stats/apiproxy,request_verb`
7006
+ # Must be of the form `organizations/`organization_id`/optimizedHostStats/`
7007
+ # dimensions``. Dimensions let you view metrics in meaningful groupings. E.g.
7008
+ # apiproxy, target_host. The value of dimensions should be comma separated list
7009
+ # as shown below `organizations/`org`/optimizedHostStats/apiproxy,request_verb`
6756
7010
  # @param [String] accuracy
6757
7011
  # Legacy field: not used anymore.
6758
7012
  # @param [String] envgroup_hostname
@@ -7208,9 +7462,13 @@ module Google
7208
7462
  execute_or_queue_command(command, &block)
7209
7463
  end
7210
7464
 
7211
- # Gets a revision of a shared flow. If `format=bundle` is passed, it instead
7212
- # outputs a shared flow revision as a ZIP-formatted bundle of code and config
7213
- # files.
7465
+ # Gets a revision of a shared flow. To download the shared flow configuration
7466
+ # bundle for the specified revision as a zip file, set the `format` query
7467
+ # parameter to `bundle`. If you are using curl, specify `-o filename.zip` to
7468
+ # save the output to a file; otherwise, it displays to `stdout`. Then, develop
7469
+ # the shared flow configuration locally and upload the updated sharedFlow
7470
+ # configuration revision, as described in [updateSharedFlowRevision](
7471
+ # updateSharedFlowRevision).
7214
7472
  # @param [String] name
7215
7473
  # Required. The name of the shared flow revision to get. Must be of the form: `
7216
7474
  # organizations/`organization_id`/sharedflows/`shared_flow_id`/revisions/`