google-cloud-app_hub-v1 1.7.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/app_hub/v1/app_hub/client.rb +418 -3
- data/lib/google/cloud/app_hub/v1/app_hub/paths.rb +36 -0
- data/lib/google/cloud/app_hub/v1/app_hub/rest/client.rb +390 -3
- data/lib/google/cloud/app_hub/v1/app_hub/rest/service_stub.rb +245 -0
- data/lib/google/cloud/app_hub/v1/version.rb +1 -1
- data/lib/google/cloud/apphub/v1/apphub_service_pb.rb +9 -1
- data/lib/google/cloud/apphub/v1/apphub_service_services_pb.rb +9 -1
- data/lib/google/cloud/apphub/v1/application_pb.rb +5 -1
- data/lib/google/cloud/apphub/v1/attributes_pb.rb +1 -1
- data/lib/google/cloud/apphub/v1/boundary_pb.rb +26 -0
- data/lib/google/cloud/apphub/v1/extended_metadata_schema_pb.rb +24 -0
- data/lib/google/cloud/apphub/v1/properties_pb.rb +30 -0
- data/lib/google/cloud/apphub/v1/service_pb.rb +2 -1
- data/lib/google/cloud/apphub/v1/service_project_attachment_pb.rb +1 -1
- data/lib/google/cloud/apphub/v1/workload_pb.rb +2 -1
- data/proto_docs/google/cloud/apphub/v1/apphub_service.rb +87 -3
- data/proto_docs/google/cloud/apphub/v1/application.rb +46 -0
- data/proto_docs/google/cloud/apphub/v1/boundary.rb +66 -0
- data/proto_docs/google/cloud/apphub/v1/extended_metadata_schema.rb +45 -0
- data/proto_docs/google/cloud/apphub/v1/properties.rb +94 -0
- data/proto_docs/google/cloud/apphub/v1/service.rb +24 -0
- data/proto_docs/google/cloud/apphub/v1/workload.rb +21 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +10 -3
|
@@ -1436,7 +1436,7 @@ module Google
|
|
|
1436
1436
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1437
1437
|
#
|
|
1438
1438
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1439
|
-
#
|
|
1439
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
1440
1440
|
# Service resource by the update.
|
|
1441
1441
|
# The fields specified in the update_mask are relative to the resource, not
|
|
1442
1442
|
# the full request.
|
|
@@ -2194,7 +2194,7 @@ module Google
|
|
|
2194
2194
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2195
2195
|
#
|
|
2196
2196
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
2197
|
-
#
|
|
2197
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
2198
2198
|
# Workload resource by the update.
|
|
2199
2199
|
# The fields specified in the update_mask are relative to the resource, not
|
|
2200
2200
|
# the full request.
|
|
@@ -2691,7 +2691,7 @@ module Google
|
|
|
2691
2691
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2692
2692
|
#
|
|
2693
2693
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
2694
|
-
#
|
|
2694
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
2695
2695
|
# Application resource by the update.
|
|
2696
2696
|
# The fields specified in the update_mask are relative to the resource, not
|
|
2697
2697
|
# the full request.
|
|
@@ -2886,6 +2886,365 @@ module Google
|
|
|
2886
2886
|
raise ::Google::Cloud::Error.from_error(e)
|
|
2887
2887
|
end
|
|
2888
2888
|
|
|
2889
|
+
##
|
|
2890
|
+
# Gets a Boundary.
|
|
2891
|
+
#
|
|
2892
|
+
# @overload get_boundary(request, options = nil)
|
|
2893
|
+
# Pass arguments to `get_boundary` via a request object, either of type
|
|
2894
|
+
# {::Google::Cloud::AppHub::V1::GetBoundaryRequest} or an equivalent Hash.
|
|
2895
|
+
#
|
|
2896
|
+
# @param request [::Google::Cloud::AppHub::V1::GetBoundaryRequest, ::Hash]
|
|
2897
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2898
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2899
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2900
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2901
|
+
#
|
|
2902
|
+
# @overload get_boundary(name: nil)
|
|
2903
|
+
# Pass arguments to `get_boundary` via keyword arguments. Note that at
|
|
2904
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2905
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2906
|
+
#
|
|
2907
|
+
# @param name [::String]
|
|
2908
|
+
# Required. The name of the boundary to retrieve.
|
|
2909
|
+
# Format: `projects/{project}/locations/{location}/boundary`.
|
|
2910
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2911
|
+
# @yieldparam result [::Google::Cloud::AppHub::V1::Boundary]
|
|
2912
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2913
|
+
#
|
|
2914
|
+
# @return [::Google::Cloud::AppHub::V1::Boundary]
|
|
2915
|
+
#
|
|
2916
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2917
|
+
#
|
|
2918
|
+
# @example Basic example
|
|
2919
|
+
# require "google/cloud/app_hub/v1"
|
|
2920
|
+
#
|
|
2921
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2922
|
+
# client = Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
|
2923
|
+
#
|
|
2924
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2925
|
+
# request = Google::Cloud::AppHub::V1::GetBoundaryRequest.new
|
|
2926
|
+
#
|
|
2927
|
+
# # Call the get_boundary method.
|
|
2928
|
+
# result = client.get_boundary request
|
|
2929
|
+
#
|
|
2930
|
+
# # The returned object is of type Google::Cloud::AppHub::V1::Boundary.
|
|
2931
|
+
# p result
|
|
2932
|
+
#
|
|
2933
|
+
def get_boundary request, options = nil
|
|
2934
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2935
|
+
|
|
2936
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AppHub::V1::GetBoundaryRequest
|
|
2937
|
+
|
|
2938
|
+
# Converts hash and nil to an options object
|
|
2939
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2940
|
+
|
|
2941
|
+
# Customize the options with defaults
|
|
2942
|
+
call_metadata = @config.rpcs.get_boundary.metadata.to_h
|
|
2943
|
+
|
|
2944
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2945
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2946
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2947
|
+
gapic_version: ::Google::Cloud::AppHub::V1::VERSION,
|
|
2948
|
+
transports_version_send: [:rest]
|
|
2949
|
+
|
|
2950
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2951
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2952
|
+
|
|
2953
|
+
options.apply_defaults timeout: @config.rpcs.get_boundary.timeout,
|
|
2954
|
+
metadata: call_metadata,
|
|
2955
|
+
retry_policy: @config.rpcs.get_boundary.retry_policy
|
|
2956
|
+
|
|
2957
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2958
|
+
metadata: @config.metadata,
|
|
2959
|
+
retry_policy: @config.retry_policy
|
|
2960
|
+
|
|
2961
|
+
@app_hub_stub.get_boundary request, options do |result, operation|
|
|
2962
|
+
yield result, operation if block_given?
|
|
2963
|
+
end
|
|
2964
|
+
rescue ::Gapic::Rest::Error => e
|
|
2965
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
##
|
|
2969
|
+
# Updates a Boundary.
|
|
2970
|
+
#
|
|
2971
|
+
# @overload update_boundary(request, options = nil)
|
|
2972
|
+
# Pass arguments to `update_boundary` via a request object, either of type
|
|
2973
|
+
# {::Google::Cloud::AppHub::V1::UpdateBoundaryRequest} or an equivalent Hash.
|
|
2974
|
+
#
|
|
2975
|
+
# @param request [::Google::Cloud::AppHub::V1::UpdateBoundaryRequest, ::Hash]
|
|
2976
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2977
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2978
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2979
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2980
|
+
#
|
|
2981
|
+
# @overload update_boundary(update_mask: nil, boundary: nil, request_id: nil)
|
|
2982
|
+
# Pass arguments to `update_boundary` via keyword arguments. Note that at
|
|
2983
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2984
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2985
|
+
#
|
|
2986
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
2987
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
2988
|
+
# Boundary resource by the update.
|
|
2989
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
2990
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
|
2991
|
+
# user does not provide a mask then all fields will be overwritten.
|
|
2992
|
+
# @param boundary [::Google::Cloud::AppHub::V1::Boundary, ::Hash]
|
|
2993
|
+
# Required. The boundary to update.
|
|
2994
|
+
# @param request_id [::String]
|
|
2995
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
2996
|
+
# request ID so that if you must retry your request, the server will know to
|
|
2997
|
+
# ignore the request if it has already been completed. The server will
|
|
2998
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
2999
|
+
#
|
|
3000
|
+
# For example, consider a situation where you make an initial request and the
|
|
3001
|
+
# request times out. If you make the request again with the same request
|
|
3002
|
+
# ID, the server can check if original operation with the same request ID
|
|
3003
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
3004
|
+
# clients from accidentally creating duplicate commitments.
|
|
3005
|
+
#
|
|
3006
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
3007
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
3008
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3009
|
+
# @yieldparam result [::Gapic::Operation]
|
|
3010
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3011
|
+
#
|
|
3012
|
+
# @return [::Gapic::Operation]
|
|
3013
|
+
#
|
|
3014
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3015
|
+
#
|
|
3016
|
+
# @example Basic example
|
|
3017
|
+
# require "google/cloud/app_hub/v1"
|
|
3018
|
+
#
|
|
3019
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3020
|
+
# client = Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
|
3021
|
+
#
|
|
3022
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3023
|
+
# request = Google::Cloud::AppHub::V1::UpdateBoundaryRequest.new
|
|
3024
|
+
#
|
|
3025
|
+
# # Call the update_boundary method.
|
|
3026
|
+
# result = client.update_boundary request
|
|
3027
|
+
#
|
|
3028
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
3029
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
3030
|
+
# # Here is how to wait for a response.
|
|
3031
|
+
# result.wait_until_done! timeout: 60
|
|
3032
|
+
# if result.response?
|
|
3033
|
+
# p result.response
|
|
3034
|
+
# else
|
|
3035
|
+
# puts "No response received."
|
|
3036
|
+
# end
|
|
3037
|
+
#
|
|
3038
|
+
def update_boundary request, options = nil
|
|
3039
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3040
|
+
|
|
3041
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AppHub::V1::UpdateBoundaryRequest
|
|
3042
|
+
|
|
3043
|
+
# Converts hash and nil to an options object
|
|
3044
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3045
|
+
|
|
3046
|
+
# Customize the options with defaults
|
|
3047
|
+
call_metadata = @config.rpcs.update_boundary.metadata.to_h
|
|
3048
|
+
|
|
3049
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3050
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3051
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3052
|
+
gapic_version: ::Google::Cloud::AppHub::V1::VERSION,
|
|
3053
|
+
transports_version_send: [:rest]
|
|
3054
|
+
|
|
3055
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3056
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3057
|
+
|
|
3058
|
+
options.apply_defaults timeout: @config.rpcs.update_boundary.timeout,
|
|
3059
|
+
metadata: call_metadata,
|
|
3060
|
+
retry_policy: @config.rpcs.update_boundary.retry_policy
|
|
3061
|
+
|
|
3062
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3063
|
+
metadata: @config.metadata,
|
|
3064
|
+
retry_policy: @config.retry_policy
|
|
3065
|
+
|
|
3066
|
+
@app_hub_stub.update_boundary request, options do |result, operation|
|
|
3067
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
3068
|
+
yield result, operation if block_given?
|
|
3069
|
+
throw :response, result
|
|
3070
|
+
end
|
|
3071
|
+
rescue ::Gapic::Rest::Error => e
|
|
3072
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3073
|
+
end
|
|
3074
|
+
|
|
3075
|
+
##
|
|
3076
|
+
# Gets an Extended Metadata Schema.
|
|
3077
|
+
#
|
|
3078
|
+
# @overload get_extended_metadata_schema(request, options = nil)
|
|
3079
|
+
# Pass arguments to `get_extended_metadata_schema` via a request object, either of type
|
|
3080
|
+
# {::Google::Cloud::AppHub::V1::GetExtendedMetadataSchemaRequest} or an equivalent Hash.
|
|
3081
|
+
#
|
|
3082
|
+
# @param request [::Google::Cloud::AppHub::V1::GetExtendedMetadataSchemaRequest, ::Hash]
|
|
3083
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3084
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3085
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3086
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3087
|
+
#
|
|
3088
|
+
# @overload get_extended_metadata_schema(name: nil)
|
|
3089
|
+
# Pass arguments to `get_extended_metadata_schema` via keyword arguments. Note that at
|
|
3090
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3091
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3092
|
+
#
|
|
3093
|
+
# @param name [::String]
|
|
3094
|
+
# Required. Schema resource name.
|
|
3095
|
+
# Format:
|
|
3096
|
+
# `projects/{project}/locations/{location}/extendedMetadataSchemas/{extended_metadata_schema}`.
|
|
3097
|
+
#
|
|
3098
|
+
# `{extended_metadata_schema}` has the format
|
|
3099
|
+
# `"apphub.googleapis.com/{SchemaName}"`.
|
|
3100
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3101
|
+
# @yieldparam result [::Google::Cloud::AppHub::V1::ExtendedMetadataSchema]
|
|
3102
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3103
|
+
#
|
|
3104
|
+
# @return [::Google::Cloud::AppHub::V1::ExtendedMetadataSchema]
|
|
3105
|
+
#
|
|
3106
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3107
|
+
#
|
|
3108
|
+
# @example Basic example
|
|
3109
|
+
# require "google/cloud/app_hub/v1"
|
|
3110
|
+
#
|
|
3111
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3112
|
+
# client = Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
|
3113
|
+
#
|
|
3114
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3115
|
+
# request = Google::Cloud::AppHub::V1::GetExtendedMetadataSchemaRequest.new
|
|
3116
|
+
#
|
|
3117
|
+
# # Call the get_extended_metadata_schema method.
|
|
3118
|
+
# result = client.get_extended_metadata_schema request
|
|
3119
|
+
#
|
|
3120
|
+
# # The returned object is of type Google::Cloud::AppHub::V1::ExtendedMetadataSchema.
|
|
3121
|
+
# p result
|
|
3122
|
+
#
|
|
3123
|
+
def get_extended_metadata_schema request, options = nil
|
|
3124
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3125
|
+
|
|
3126
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AppHub::V1::GetExtendedMetadataSchemaRequest
|
|
3127
|
+
|
|
3128
|
+
# Converts hash and nil to an options object
|
|
3129
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3130
|
+
|
|
3131
|
+
# Customize the options with defaults
|
|
3132
|
+
call_metadata = @config.rpcs.get_extended_metadata_schema.metadata.to_h
|
|
3133
|
+
|
|
3134
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3135
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3136
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3137
|
+
gapic_version: ::Google::Cloud::AppHub::V1::VERSION,
|
|
3138
|
+
transports_version_send: [:rest]
|
|
3139
|
+
|
|
3140
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3141
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3142
|
+
|
|
3143
|
+
options.apply_defaults timeout: @config.rpcs.get_extended_metadata_schema.timeout,
|
|
3144
|
+
metadata: call_metadata,
|
|
3145
|
+
retry_policy: @config.rpcs.get_extended_metadata_schema.retry_policy
|
|
3146
|
+
|
|
3147
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3148
|
+
metadata: @config.metadata,
|
|
3149
|
+
retry_policy: @config.retry_policy
|
|
3150
|
+
|
|
3151
|
+
@app_hub_stub.get_extended_metadata_schema request, options do |result, operation|
|
|
3152
|
+
yield result, operation if block_given?
|
|
3153
|
+
end
|
|
3154
|
+
rescue ::Gapic::Rest::Error => e
|
|
3155
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3156
|
+
end
|
|
3157
|
+
|
|
3158
|
+
##
|
|
3159
|
+
# Lists Extended Metadata Schemas available in a host project and location.
|
|
3160
|
+
#
|
|
3161
|
+
# @overload list_extended_metadata_schemas(request, options = nil)
|
|
3162
|
+
# Pass arguments to `list_extended_metadata_schemas` via a request object, either of type
|
|
3163
|
+
# {::Google::Cloud::AppHub::V1::ListExtendedMetadataSchemasRequest} or an equivalent Hash.
|
|
3164
|
+
#
|
|
3165
|
+
# @param request [::Google::Cloud::AppHub::V1::ListExtendedMetadataSchemasRequest, ::Hash]
|
|
3166
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3167
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3168
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3169
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3170
|
+
#
|
|
3171
|
+
# @overload list_extended_metadata_schemas(parent: nil, page_size: nil, page_token: nil)
|
|
3172
|
+
# Pass arguments to `list_extended_metadata_schemas` via keyword arguments. Note that at
|
|
3173
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3174
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3175
|
+
#
|
|
3176
|
+
# @param parent [::String]
|
|
3177
|
+
# Required. Project and location to list Extended Metadata Schemas on.
|
|
3178
|
+
# Expected format: `projects/{project}/locations/{location}`.
|
|
3179
|
+
# @param page_size [::Integer]
|
|
3180
|
+
# Optional. Requested page size. Server may return fewer items than
|
|
3181
|
+
# requested. If unspecified, server will pick an appropriate default.
|
|
3182
|
+
# @param page_token [::String]
|
|
3183
|
+
# Optional. A token identifying a page of results the server should return.
|
|
3184
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3185
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppHub::V1::ExtendedMetadataSchema>]
|
|
3186
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3187
|
+
#
|
|
3188
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppHub::V1::ExtendedMetadataSchema>]
|
|
3189
|
+
#
|
|
3190
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3191
|
+
#
|
|
3192
|
+
# @example Basic example
|
|
3193
|
+
# require "google/cloud/app_hub/v1"
|
|
3194
|
+
#
|
|
3195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3196
|
+
# client = Google::Cloud::AppHub::V1::AppHub::Rest::Client.new
|
|
3197
|
+
#
|
|
3198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
3199
|
+
# request = Google::Cloud::AppHub::V1::ListExtendedMetadataSchemasRequest.new
|
|
3200
|
+
#
|
|
3201
|
+
# # Call the list_extended_metadata_schemas method.
|
|
3202
|
+
# result = client.list_extended_metadata_schemas request
|
|
3203
|
+
#
|
|
3204
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
3205
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
3206
|
+
# result.each do |item|
|
|
3207
|
+
# # Each element is of type ::Google::Cloud::AppHub::V1::ExtendedMetadataSchema.
|
|
3208
|
+
# p item
|
|
3209
|
+
# end
|
|
3210
|
+
#
|
|
3211
|
+
def list_extended_metadata_schemas request, options = nil
|
|
3212
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
3213
|
+
|
|
3214
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AppHub::V1::ListExtendedMetadataSchemasRequest
|
|
3215
|
+
|
|
3216
|
+
# Converts hash and nil to an options object
|
|
3217
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
3218
|
+
|
|
3219
|
+
# Customize the options with defaults
|
|
3220
|
+
call_metadata = @config.rpcs.list_extended_metadata_schemas.metadata.to_h
|
|
3221
|
+
|
|
3222
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
3223
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
3224
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
3225
|
+
gapic_version: ::Google::Cloud::AppHub::V1::VERSION,
|
|
3226
|
+
transports_version_send: [:rest]
|
|
3227
|
+
|
|
3228
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
3229
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
3230
|
+
|
|
3231
|
+
options.apply_defaults timeout: @config.rpcs.list_extended_metadata_schemas.timeout,
|
|
3232
|
+
metadata: call_metadata,
|
|
3233
|
+
retry_policy: @config.rpcs.list_extended_metadata_schemas.retry_policy
|
|
3234
|
+
|
|
3235
|
+
options.apply_defaults timeout: @config.timeout,
|
|
3236
|
+
metadata: @config.metadata,
|
|
3237
|
+
retry_policy: @config.retry_policy
|
|
3238
|
+
|
|
3239
|
+
@app_hub_stub.list_extended_metadata_schemas request, options do |result, operation|
|
|
3240
|
+
result = ::Gapic::Rest::PagedEnumerable.new @app_hub_stub, :list_extended_metadata_schemas, "extended_metadata_schemas", request, result, options
|
|
3241
|
+
yield result, operation if block_given?
|
|
3242
|
+
throw :response, result
|
|
3243
|
+
end
|
|
3244
|
+
rescue ::Gapic::Rest::Error => e
|
|
3245
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
3246
|
+
end
|
|
3247
|
+
|
|
2889
3248
|
##
|
|
2890
3249
|
# Configuration class for the AppHub REST API.
|
|
2891
3250
|
#
|
|
@@ -3176,6 +3535,26 @@ module Google
|
|
|
3176
3535
|
# @return [::Gapic::Config::Method]
|
|
3177
3536
|
#
|
|
3178
3537
|
attr_reader :delete_application
|
|
3538
|
+
##
|
|
3539
|
+
# RPC-specific configuration for `get_boundary`
|
|
3540
|
+
# @return [::Gapic::Config::Method]
|
|
3541
|
+
#
|
|
3542
|
+
attr_reader :get_boundary
|
|
3543
|
+
##
|
|
3544
|
+
# RPC-specific configuration for `update_boundary`
|
|
3545
|
+
# @return [::Gapic::Config::Method]
|
|
3546
|
+
#
|
|
3547
|
+
attr_reader :update_boundary
|
|
3548
|
+
##
|
|
3549
|
+
# RPC-specific configuration for `get_extended_metadata_schema`
|
|
3550
|
+
# @return [::Gapic::Config::Method]
|
|
3551
|
+
#
|
|
3552
|
+
attr_reader :get_extended_metadata_schema
|
|
3553
|
+
##
|
|
3554
|
+
# RPC-specific configuration for `list_extended_metadata_schemas`
|
|
3555
|
+
# @return [::Gapic::Config::Method]
|
|
3556
|
+
#
|
|
3557
|
+
attr_reader :list_extended_metadata_schemas
|
|
3179
3558
|
|
|
3180
3559
|
# @private
|
|
3181
3560
|
def initialize parent_rpcs = nil
|
|
@@ -3233,6 +3612,14 @@ module Google
|
|
|
3233
3612
|
@update_application = ::Gapic::Config::Method.new update_application_config
|
|
3234
3613
|
delete_application_config = parent_rpcs.delete_application if parent_rpcs.respond_to? :delete_application
|
|
3235
3614
|
@delete_application = ::Gapic::Config::Method.new delete_application_config
|
|
3615
|
+
get_boundary_config = parent_rpcs.get_boundary if parent_rpcs.respond_to? :get_boundary
|
|
3616
|
+
@get_boundary = ::Gapic::Config::Method.new get_boundary_config
|
|
3617
|
+
update_boundary_config = parent_rpcs.update_boundary if parent_rpcs.respond_to? :update_boundary
|
|
3618
|
+
@update_boundary = ::Gapic::Config::Method.new update_boundary_config
|
|
3619
|
+
get_extended_metadata_schema_config = parent_rpcs.get_extended_metadata_schema if parent_rpcs.respond_to? :get_extended_metadata_schema
|
|
3620
|
+
@get_extended_metadata_schema = ::Gapic::Config::Method.new get_extended_metadata_schema_config
|
|
3621
|
+
list_extended_metadata_schemas_config = parent_rpcs.list_extended_metadata_schemas if parent_rpcs.respond_to? :list_extended_metadata_schemas
|
|
3622
|
+
@list_extended_metadata_schemas = ::Gapic::Config::Method.new list_extended_metadata_schemas_config
|
|
3236
3623
|
|
|
3237
3624
|
yield self if block_given?
|
|
3238
3625
|
end
|