Class: OCI::ServiceMesh::ServiceMeshClient
- Inherits:
-
Object
- Object
- OCI::ServiceMesh::ServiceMeshClient
- Defined in:
- lib/oci/service_mesh/service_mesh_client.rb
Overview
Use the Service Mesh API to manage mesh, virtual service, access policy and other mesh related items.
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#cancel_work_request(work_request_id, opts = {}) ⇒ Response
Cancels the work request with the given ID.
-
#change_access_policy_compartment(access_policy_id, change_access_policy_compartment_details, opts = {}) ⇒ Response
Moves an AccessPolicy resource from one compartment identifier to another.
-
#change_ingress_gateway_compartment(ingress_gateway_id, change_ingress_gateway_compartment_details, opts = {}) ⇒ Response
Moves a IngressGateway resource from one compartment identifier to another.
-
#change_ingress_gateway_route_table_compartment(ingress_gateway_route_table_id, change_ingress_gateway_route_table_compartment_details, opts = {}) ⇒ Response
Moves a IngressGatewayRouteTable resource from one compartment identifier to another.
-
#change_mesh_compartment(mesh_id, change_mesh_compartment_details, opts = {}) ⇒ Response
Moves a Mesh resource from one compartment identifier to another.
-
#change_virtual_deployment_compartment(virtual_deployment_id, change_virtual_deployment_compartment_details, opts = {}) ⇒ Response
Moves a VirtualDeployment resource from one compartment identifier to another.
-
#change_virtual_service_compartment(virtual_service_id, change_virtual_service_compartment_details, opts = {}) ⇒ Response
Moves a VirtualService resource from one compartment identifier to another.
-
#change_virtual_service_route_table_compartment(virtual_service_route_table_id, change_virtual_service_route_table_compartment_details, opts = {}) ⇒ Response
Moves a VirtualServiceRouteTable resource from one compartment identifier to another.
-
#create_access_policy(create_access_policy_details, opts = {}) ⇒ Response
Creates a new AccessPolicy.
-
#create_ingress_gateway(create_ingress_gateway_details, opts = {}) ⇒ Response
Creates a new IngressGateway.
-
#create_ingress_gateway_route_table(create_ingress_gateway_route_table_details, opts = {}) ⇒ Response
Creates a new IngressGatewayRouteTable.
-
#create_mesh(create_mesh_details, opts = {}) ⇒ Response
Creates a new Mesh.
-
#create_virtual_deployment(create_virtual_deployment_details, opts = {}) ⇒ Response
Creates a new VirtualDeployment.
-
#create_virtual_service(create_virtual_service_details, opts = {}) ⇒ Response
Creates a new VirtualService.
-
#create_virtual_service_route_table(create_virtual_service_route_table_details, opts = {}) ⇒ Response
Creates a new VirtualServiceRouteTable.
-
#delete_access_policy(access_policy_id, opts = {}) ⇒ Response
Deletes an AccessPolicy resource by identifier.
-
#delete_ingress_gateway(ingress_gateway_id, opts = {}) ⇒ Response
Deletes an IngressGateway resource by identifier.
-
#delete_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) ⇒ Response
Deletes a IngressGatewayRouteTable resource by identifier.
-
#delete_mesh(mesh_id, opts = {}) ⇒ Response
Deletes a Mesh resource by identifier.
-
#delete_virtual_deployment(virtual_deployment_id, opts = {}) ⇒ Response
Deletes a VirtualDeployment resource by identifier.
-
#delete_virtual_service(virtual_service_id, opts = {}) ⇒ Response
Deletes a VirtualService resource by identifier.
-
#delete_virtual_service_route_table(virtual_service_route_table_id, opts = {}) ⇒ Response
Deletes a VirtualServiceRouteTable resource by identifier.
-
#get_access_policy(access_policy_id, opts = {}) ⇒ Response
Get an AccessPolicy by identifier.
-
#get_ingress_gateway(ingress_gateway_id, opts = {}) ⇒ Response
Gets an IngressGateway by identifier.
-
#get_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) ⇒ Response
Gets a IngressGatewayRouteTable by identifier.
-
#get_mesh(mesh_id, opts = {}) ⇒ Response
Gets a Mesh by identifier.
-
#get_proxy_details(opts = {}) ⇒ Response
Returns the attributes of the Proxy such as proxy image version.
-
#get_virtual_deployment(virtual_deployment_id, opts = {}) ⇒ Response
Gets a VirtualDeployment by identifier.
-
#get_virtual_service(virtual_service_id, opts = {}) ⇒ Response
Gets a VirtualService by identifier.
-
#get_virtual_service_route_table(virtual_service_route_table_id, opts = {}) ⇒ Response
Gets a VirtualServiceRouteTable by identifier.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the status of the work request with the given ID.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ ServiceMeshClient
constructor
Creates a new ServiceMeshClient.
-
#list_access_policies(compartment_id, opts = {}) ⇒ Response
Returns a list of AccessPolicy objects.
-
#list_ingress_gateway_route_tables(compartment_id, opts = {}) ⇒ Response
Returns a list of IngressGatewayRouteTable objects.
-
#list_ingress_gateways(compartment_id, opts = {}) ⇒ Response
Returns a list of IngressGateway objects.
-
#list_meshes(compartment_id, opts = {}) ⇒ Response
Returns a list of Mesh objects.
-
#list_virtual_deployments(compartment_id, opts = {}) ⇒ Response
Returns a list of VirtualDeployments.
-
#list_virtual_service_route_tables(compartment_id, opts = {}) ⇒ Response
Returns a list of VirtualServiceRouteTable objects.
-
#list_virtual_services(compartment_id, opts = {}) ⇒ Response
Returns a list of VirtualService objects.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of errors for a given work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Return a (paginated) list of logs for a given work request.
-
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Lists the work requests in a compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#update_access_policy(access_policy_id, update_access_policy_details, opts = {}) ⇒ Response
Updates the AccessPolicy.
-
#update_ingress_gateway(ingress_gateway_id, update_ingress_gateway_details, opts = {}) ⇒ Response
Updates the IngressGateway.
-
#update_ingress_gateway_route_table(ingress_gateway_route_table_id, update_ingress_gateway_route_table_details, opts = {}) ⇒ Response
Updates the IngressGatewayRouteTable.
-
#update_mesh(mesh_id, update_mesh_details, opts = {}) ⇒ Response
Updates the Mesh.
-
#update_virtual_deployment(virtual_deployment_id, update_virtual_deployment_details, opts = {}) ⇒ Response
Updates the VirtualDeployment.
-
#update_virtual_service(virtual_service_id, update_virtual_service_details, opts = {}) ⇒ Response
Updates the VirtualService.
-
#update_virtual_service_route_table(virtual_service_route_table_id, update_virtual_service_route_table_details, opts = {}) ⇒ Response
Updates the VirtualServiceRouteTable.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ ServiceMeshClient
Creates a new ServiceMeshClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 55 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20220615' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "ServiceMeshClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
15 16 17 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 19 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
29 30 31 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 29 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil
, which means that an operation will not perform any retries
25 26 27 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#cancel_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use cancel_work_request API.
Cancels the work request with the given ID.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 117 def cancel_work_request(work_request_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#cancel_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling cancel_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#cancel_work_request') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_access_policy_compartment(access_policy_id, change_access_policy_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_access_policy_compartment API.
Moves an AccessPolicy resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 184 def change_access_policy_compartment(access_policy_id, change_access_policy_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_access_policy_compartment.' if logger raise "Missing the required parameter 'access_policy_id' when calling change_access_policy_compartment." if access_policy_id.nil? raise "Missing the required parameter 'change_access_policy_compartment_details' when calling change_access_policy_compartment." if change_access_policy_compartment_details.nil? raise "Parameter value for 'access_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(access_policy_id) path = '/accessPolicies/{accessPolicyId}/actions/changeCompartment'.sub('{accessPolicyId}', access_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_access_policy_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_access_policy_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_ingress_gateway_compartment(ingress_gateway_id, change_ingress_gateway_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_ingress_gateway_compartment API.
Moves a IngressGateway resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 254 def change_ingress_gateway_compartment(ingress_gateway_id, change_ingress_gateway_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_ingress_gateway_compartment.' if logger raise "Missing the required parameter 'ingress_gateway_id' when calling change_ingress_gateway_compartment." if ingress_gateway_id.nil? raise "Missing the required parameter 'change_ingress_gateway_compartment_details' when calling change_ingress_gateway_compartment." if change_ingress_gateway_compartment_details.nil? raise "Parameter value for 'ingress_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_id) path = '/ingressGateways/{ingressGatewayId}/actions/changeCompartment'.sub('{ingressGatewayId}', ingress_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_ingress_gateway_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_ingress_gateway_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_ingress_gateway_route_table_compartment(ingress_gateway_route_table_id, change_ingress_gateway_route_table_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_ingress_gateway_route_table_compartment API.
Moves a IngressGatewayRouteTable resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 324 def change_ingress_gateway_route_table_compartment(ingress_gateway_route_table_id, change_ingress_gateway_route_table_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_ingress_gateway_route_table_compartment.' if logger raise "Missing the required parameter 'ingress_gateway_route_table_id' when calling change_ingress_gateway_route_table_compartment." if ingress_gateway_route_table_id.nil? raise "Missing the required parameter 'change_ingress_gateway_route_table_compartment_details' when calling change_ingress_gateway_route_table_compartment." if change_ingress_gateway_route_table_compartment_details.nil? raise "Parameter value for 'ingress_gateway_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_route_table_id) path = '/ingressGatewayRouteTables/{ingressGatewayRouteTableId}/actions/changeCompartment'.sub('{ingressGatewayRouteTableId}', ingress_gateway_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_ingress_gateway_route_table_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_ingress_gateway_route_table_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_mesh_compartment(mesh_id, change_mesh_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_mesh_compartment API.
Moves a Mesh resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 394 def change_mesh_compartment(mesh_id, change_mesh_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_mesh_compartment.' if logger raise "Missing the required parameter 'mesh_id' when calling change_mesh_compartment." if mesh_id.nil? raise "Missing the required parameter 'change_mesh_compartment_details' when calling change_mesh_compartment." if change_mesh_compartment_details.nil? raise "Parameter value for 'mesh_id' must not be blank" if OCI::Internal::Util.blank_string?(mesh_id) path = '/meshes/{meshId}/actions/changeCompartment'.sub('{meshId}', mesh_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_mesh_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_mesh_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_virtual_deployment_compartment(virtual_deployment_id, change_virtual_deployment_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_virtual_deployment_compartment API.
Moves a VirtualDeployment resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 464 def change_virtual_deployment_compartment(virtual_deployment_id, change_virtual_deployment_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_virtual_deployment_compartment.' if logger raise "Missing the required parameter 'virtual_deployment_id' when calling change_virtual_deployment_compartment." if virtual_deployment_id.nil? raise "Missing the required parameter 'change_virtual_deployment_compartment_details' when calling change_virtual_deployment_compartment." if change_virtual_deployment_compartment_details.nil? raise "Parameter value for 'virtual_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_deployment_id) path = '/virtualDeployments/{virtualDeploymentId}/actions/changeCompartment'.sub('{virtualDeploymentId}', virtual_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_virtual_deployment_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_virtual_deployment_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_virtual_service_compartment(virtual_service_id, change_virtual_service_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_virtual_service_compartment API.
Moves a VirtualService resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 534 def change_virtual_service_compartment(virtual_service_id, change_virtual_service_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_virtual_service_compartment.' if logger raise "Missing the required parameter 'virtual_service_id' when calling change_virtual_service_compartment." if virtual_service_id.nil? raise "Missing the required parameter 'change_virtual_service_compartment_details' when calling change_virtual_service_compartment." if change_virtual_service_compartment_details.nil? raise "Parameter value for 'virtual_service_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_id) path = '/virtualServices/{virtualServiceId}/actions/changeCompartment'.sub('{virtualServiceId}', virtual_service_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_virtual_service_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_virtual_service_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#change_virtual_service_route_table_compartment(virtual_service_route_table_id, change_virtual_service_route_table_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_virtual_service_route_table_compartment API.
Moves a VirtualServiceRouteTable resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 604 def change_virtual_service_route_table_compartment(virtual_service_route_table_id, change_virtual_service_route_table_compartment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#change_virtual_service_route_table_compartment.' if logger raise "Missing the required parameter 'virtual_service_route_table_id' when calling change_virtual_service_route_table_compartment." if virtual_service_route_table_id.nil? raise "Missing the required parameter 'change_virtual_service_route_table_compartment_details' when calling change_virtual_service_route_table_compartment." if change_virtual_service_route_table_compartment_details.nil? raise "Parameter value for 'virtual_service_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_route_table_id) path = '/virtualServiceRouteTables/{virtualServiceRouteTableId}/actions/changeCompartment'.sub('{virtualServiceRouteTableId}', virtual_service_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(change_virtual_service_route_table_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#change_virtual_service_route_table_compartment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_access_policy(create_access_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_access_policy API.
Creates a new AccessPolicy.
668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 668 def create_access_policy(create_access_policy_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_access_policy.' if logger raise "Missing the required parameter 'create_access_policy_details' when calling create_access_policy." if create_access_policy_details.nil? path = '/accessPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_access_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_access_policy') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::AccessPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#create_ingress_gateway(create_ingress_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_ingress_gateway API.
Creates a new IngressGateway.
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 730 def create_ingress_gateway(create_ingress_gateway_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_ingress_gateway.' if logger raise "Missing the required parameter 'create_ingress_gateway_details' when calling create_ingress_gateway." if create_ingress_gateway_details.nil? path = '/ingressGateways' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_ingress_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_ingress_gateway') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGateway' ) end # rubocop:enable Metrics/BlockLength end |
#create_ingress_gateway_route_table(create_ingress_gateway_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_ingress_gateway_route_table API.
Creates a new IngressGatewayRouteTable.
792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 792 def create_ingress_gateway_route_table(create_ingress_gateway_route_table_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_ingress_gateway_route_table.' if logger raise "Missing the required parameter 'create_ingress_gateway_route_table_details' when calling create_ingress_gateway_route_table." if create_ingress_gateway_route_table_details.nil? path = '/ingressGatewayRouteTables' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_ingress_gateway_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_ingress_gateway_route_table') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGatewayRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#create_mesh(create_mesh_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_mesh API.
Creates a new Mesh.
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 854 def create_mesh(create_mesh_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_mesh.' if logger raise "Missing the required parameter 'create_mesh_details' when calling create_mesh." if create_mesh_details.nil? path = '/meshes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_mesh_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_mesh') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::Mesh' ) end # rubocop:enable Metrics/BlockLength end |
#create_virtual_deployment(create_virtual_deployment_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_virtual_deployment API.
Creates a new VirtualDeployment.
916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 916 def create_virtual_deployment(create_virtual_deployment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_virtual_deployment.' if logger raise "Missing the required parameter 'create_virtual_deployment_details' when calling create_virtual_deployment." if create_virtual_deployment_details.nil? path = '/virtualDeployments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_virtual_deployment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_virtual_deployment') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualDeployment' ) end # rubocop:enable Metrics/BlockLength end |
#create_virtual_service(create_virtual_service_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_virtual_service API.
Creates a new VirtualService.
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 978 def create_virtual_service(create_virtual_service_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_virtual_service.' if logger raise "Missing the required parameter 'create_virtual_service_details' when calling create_virtual_service." if create_virtual_service_details.nil? path = '/virtualServices' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_virtual_service_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_virtual_service') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualService' ) end # rubocop:enable Metrics/BlockLength end |
#create_virtual_service_route_table(create_virtual_service_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_virtual_service_route_table API.
Creates a new VirtualServiceRouteTable.
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1040 def create_virtual_service_route_table(create_virtual_service_route_table_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#create_virtual_service_route_table.' if logger raise "Missing the required parameter 'create_virtual_service_route_table_details' when calling create_virtual_service_route_table." if create_virtual_service_route_table_details.nil? path = '/virtualServiceRouteTables' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_virtual_service_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#create_virtual_service_route_table') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualServiceRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#delete_access_policy(access_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_access_policy API.
Deletes an AccessPolicy resource by identifier.
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1101 def delete_access_policy(access_policy_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_access_policy.' if logger raise "Missing the required parameter 'access_policy_id' when calling delete_access_policy." if access_policy_id.nil? raise "Parameter value for 'access_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(access_policy_id) path = '/accessPolicies/{accessPolicyId}'.sub('{accessPolicyId}', access_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_access_policy') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_ingress_gateway(ingress_gateway_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_ingress_gateway API.
Deletes an IngressGateway resource by identifier.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1161 def delete_ingress_gateway(ingress_gateway_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_ingress_gateway.' if logger raise "Missing the required parameter 'ingress_gateway_id' when calling delete_ingress_gateway." if ingress_gateway_id.nil? raise "Parameter value for 'ingress_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_id) path = '/ingressGateways/{ingressGatewayId}'.sub('{ingressGatewayId}', ingress_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_ingress_gateway') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_ingress_gateway_route_table API.
Deletes a IngressGatewayRouteTable resource by identifier.
1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1221 def delete_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_ingress_gateway_route_table.' if logger raise "Missing the required parameter 'ingress_gateway_route_table_id' when calling delete_ingress_gateway_route_table." if ingress_gateway_route_table_id.nil? raise "Parameter value for 'ingress_gateway_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_route_table_id) path = '/ingressGatewayRouteTables/{ingressGatewayRouteTableId}'.sub('{ingressGatewayRouteTableId}', ingress_gateway_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_ingress_gateway_route_table') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_mesh(mesh_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_mesh API.
Deletes a Mesh resource by identifier.
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1281 def delete_mesh(mesh_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_mesh.' if logger raise "Missing the required parameter 'mesh_id' when calling delete_mesh." if mesh_id.nil? raise "Parameter value for 'mesh_id' must not be blank" if OCI::Internal::Util.blank_string?(mesh_id) path = '/meshes/{meshId}'.sub('{meshId}', mesh_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_mesh') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_virtual_deployment(virtual_deployment_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_virtual_deployment API.
Deletes a VirtualDeployment resource by identifier.
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1341 def delete_virtual_deployment(virtual_deployment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_virtual_deployment.' if logger raise "Missing the required parameter 'virtual_deployment_id' when calling delete_virtual_deployment." if virtual_deployment_id.nil? raise "Parameter value for 'virtual_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_deployment_id) path = '/virtualDeployments/{virtualDeploymentId}'.sub('{virtualDeploymentId}', virtual_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_virtual_deployment') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_virtual_service(virtual_service_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_virtual_service API.
Deletes a VirtualService resource by identifier
1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1401 def delete_virtual_service(virtual_service_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_virtual_service.' if logger raise "Missing the required parameter 'virtual_service_id' when calling delete_virtual_service." if virtual_service_id.nil? raise "Parameter value for 'virtual_service_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_id) path = '/virtualServices/{virtualServiceId}'.sub('{virtualServiceId}', virtual_service_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_virtual_service') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_virtual_service_route_table(virtual_service_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_virtual_service_route_table API.
Deletes a VirtualServiceRouteTable resource by identifier.
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1461 def delete_virtual_service_route_table(virtual_service_route_table_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#delete_virtual_service_route_table.' if logger raise "Missing the required parameter 'virtual_service_route_table_id' when calling delete_virtual_service_route_table." if virtual_service_route_table_id.nil? raise "Parameter value for 'virtual_service_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_route_table_id) path = '/virtualServiceRouteTables/{virtualServiceRouteTableId}'.sub('{virtualServiceRouteTableId}', virtual_service_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#delete_virtual_service_route_table') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#get_access_policy(access_policy_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_access_policy API.
Get an AccessPolicy by identifier.
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1515 def get_access_policy(access_policy_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_access_policy.' if logger raise "Missing the required parameter 'access_policy_id' when calling get_access_policy." if access_policy_id.nil? raise "Parameter value for 'access_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(access_policy_id) path = '/accessPolicies/{accessPolicyId}'.sub('{accessPolicyId}', access_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_access_policy') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::AccessPolicy' ) end # rubocop:enable Metrics/BlockLength end |
#get_ingress_gateway(ingress_gateway_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ingress_gateway API.
Gets an IngressGateway by identifier.
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1569 def get_ingress_gateway(ingress_gateway_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_ingress_gateway.' if logger raise "Missing the required parameter 'ingress_gateway_id' when calling get_ingress_gateway." if ingress_gateway_id.nil? raise "Parameter value for 'ingress_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_id) path = '/ingressGateways/{ingressGatewayId}'.sub('{ingressGatewayId}', ingress_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_ingress_gateway') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGateway' ) end # rubocop:enable Metrics/BlockLength end |
#get_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_ingress_gateway_route_table API.
Gets a IngressGatewayRouteTable by identifier.
1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1623 def get_ingress_gateway_route_table(ingress_gateway_route_table_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_ingress_gateway_route_table.' if logger raise "Missing the required parameter 'ingress_gateway_route_table_id' when calling get_ingress_gateway_route_table." if ingress_gateway_route_table_id.nil? raise "Parameter value for 'ingress_gateway_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_route_table_id) path = '/ingressGatewayRouteTables/{ingressGatewayRouteTableId}'.sub('{ingressGatewayRouteTableId}', ingress_gateway_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_ingress_gateway_route_table') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGatewayRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#get_mesh(mesh_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_mesh API.
Gets a Mesh by identifier.
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1677 def get_mesh(mesh_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_mesh.' if logger raise "Missing the required parameter 'mesh_id' when calling get_mesh." if mesh_id.nil? raise "Parameter value for 'mesh_id' must not be blank" if OCI::Internal::Util.blank_string?(mesh_id) path = '/meshes/{meshId}'.sub('{meshId}', mesh_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_mesh') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::Mesh' ) end # rubocop:enable Metrics/BlockLength end |
#get_proxy_details(opts = {}) ⇒ Response
Click here to see an example of how to use get_proxy_details API.
Returns the attributes of the Proxy such as proxy image version.
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1731 def get_proxy_details(opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_proxy_details.' if logger path = '/proxyDetails' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_proxy_details') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::ProxyDetails' ) end # rubocop:enable Metrics/BlockLength end |
#get_virtual_deployment(virtual_deployment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_virtual_deployment API.
Gets a VirtualDeployment by identifier.
1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1783 def get_virtual_deployment(virtual_deployment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_virtual_deployment.' if logger raise "Missing the required parameter 'virtual_deployment_id' when calling get_virtual_deployment." if virtual_deployment_id.nil? raise "Parameter value for 'virtual_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_deployment_id) path = '/virtualDeployments/{virtualDeploymentId}'.sub('{virtualDeploymentId}', virtual_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_virtual_deployment') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualDeployment' ) end # rubocop:enable Metrics/BlockLength end |
#get_virtual_service(virtual_service_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_virtual_service API.
Gets a VirtualService by identifier.
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1837 def get_virtual_service(virtual_service_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_virtual_service.' if logger raise "Missing the required parameter 'virtual_service_id' when calling get_virtual_service." if virtual_service_id.nil? raise "Parameter value for 'virtual_service_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_id) path = '/virtualServices/{virtualServiceId}'.sub('{virtualServiceId}', virtual_service_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_virtual_service') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualService' ) end # rubocop:enable Metrics/BlockLength end |
#get_virtual_service_route_table(virtual_service_route_table_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_virtual_service_route_table API.
Gets a VirtualServiceRouteTable by identifier.
1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1891 def get_virtual_service_route_table(virtual_service_route_table_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_virtual_service_route_table.' if logger raise "Missing the required parameter 'virtual_service_route_table_id' when calling get_virtual_service_route_table." if virtual_service_route_table_id.nil? raise "Parameter value for 'virtual_service_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_route_table_id) path = '/virtualServiceRouteTables/{virtualServiceRouteTableId}'.sub('{virtualServiceRouteTableId}', virtual_service_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_virtual_service_route_table') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualServiceRouteTable' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_work_request API.
Gets the status of the work request with the given ID.
1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 1945 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#get_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#get_work_request') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_access_policies(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_access_policies API.
Returns a list of AccessPolicy objects.
Allowed values are: id, timeCreated, name
2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2010 def list_access_policies(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_access_policies.' if logger raise "Missing the required parameter 'compartment_id' when calling list_access_policies." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::AccessPolicy::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::AccessPolicy::LIFECYCLE_STATE_ENUM.' end path = '/accessPolicies' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:meshId] = opts[:mesh_id] if opts[:mesh_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_access_policies') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::AccessPolicyCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_ingress_gateway_route_tables(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ingress_gateway_route_tables API.
Returns a list of IngressGatewayRouteTable objects.
Allowed values are: id, timeCreated, name
2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2095 def list_ingress_gateway_route_tables(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_ingress_gateway_route_tables.' if logger raise "Missing the required parameter 'compartment_id' when calling list_ingress_gateway_route_tables." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::IngressGatewayRouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::IngressGatewayRouteTable::LIFECYCLE_STATE_ENUM.' end path = '/ingressGatewayRouteTables' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:ingressGatewayId] = opts[:ingress_gateway_id] if opts[:ingress_gateway_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_ingress_gateway_route_tables') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGatewayRouteTableCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_ingress_gateways(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_ingress_gateways API.
Returns a list of IngressGateway objects.
Allowed values are: id, timeCreated, name
2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2180 def list_ingress_gateways(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_ingress_gateways.' if logger raise "Missing the required parameter 'compartment_id' when calling list_ingress_gateways." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::IngressGateway::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::IngressGateway::LIFECYCLE_STATE_ENUM.' end path = '/ingressGateways' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:meshId] = opts[:mesh_id] if opts[:mesh_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_ingress_gateways') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::IngressGatewayCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_meshes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_meshes API.
Returns a list of Mesh objects.
Allowed values are: id, timeCreated, displayName
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2264 def list_meshes(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_meshes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_meshes." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::Mesh::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::Mesh::LIFECYCLE_STATE_ENUM.' end path = '/meshes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:id] = opts[:id] if opts[:id] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_meshes') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::MeshCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_virtual_deployments(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_virtual_deployments API.
Returns a list of VirtualDeployments.
Allowed values are: id, timeCreated, name
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2348 def list_virtual_deployments(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_virtual_deployments.' if logger raise "Missing the required parameter 'compartment_id' when calling list_virtual_deployments." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::VirtualDeployment::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::VirtualDeployment::LIFECYCLE_STATE_ENUM.' end path = '/virtualDeployments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:virtualServiceId] = opts[:virtual_service_id] if opts[:virtual_service_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_virtual_deployments') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualDeploymentCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_virtual_service_route_tables(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_virtual_service_route_tables API.
Returns a list of VirtualServiceRouteTable objects.
Allowed values are: id, timeCreated, name
2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2433 def list_virtual_service_route_tables(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_virtual_service_route_tables.' if logger raise "Missing the required parameter 'compartment_id' when calling list_virtual_service_route_tables." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::VirtualServiceRouteTable::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::VirtualServiceRouteTable::LIFECYCLE_STATE_ENUM.' end path = '/virtualServiceRouteTables' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:virtualServiceId] = opts[:virtual_service_id] if opts[:virtual_service_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_virtual_service_route_tables') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualServiceRouteTableCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_virtual_services(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_virtual_services API.
Returns a list of VirtualService objects.
Allowed values are: id, timeCreated, name
2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2518 def list_virtual_services(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_virtual_services.' if logger raise "Missing the required parameter 'compartment_id' when calling list_virtual_services." if compartment_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[id timeCreated name].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of id, timeCreated, name.' end if opts[:lifecycle_state] && !OCI::ServiceMesh::Models::VirtualService::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::ServiceMesh::Models::VirtualService::LIFECYCLE_STATE_ENUM.' end path = '/virtualServices' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:name] = opts[:name] if opts[:name] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:meshId] = opts[:mesh_id] if opts[:mesh_id] query_params[:id] = opts[:id] if opts[:id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_virtual_services') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::VirtualServiceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_errors API.
Return a (paginated) list of errors for a given work request.
Allowed values are: timestamp
2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2599 def list_work_request_errors(work_request_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_work_request_errors.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timestamp.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_work_request_errors') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::WorkRequestErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_logs API.
Return a (paginated) list of logs for a given work request.
Allowed values are: timestamp
2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2672 def list_work_request_logs(work_request_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_work_request_logs.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil? if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timestamp.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_work_request_logs') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::WorkRequestLogEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Lists the work requests in a compartment.
Allowed values are: timeAccepted
2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2748 def list_work_requests(compartment_id, opts = {}) logger.debug 'Calling operation ServiceMeshClient#list_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil? if opts[:operation_status] && !OCI::ServiceMesh::Models::OPERATION_STATUS_ENUM.include?(opts[:operation_status]) raise 'Invalid value for "operation_status", must be one of the values in OCI::ServiceMesh::Models::OPERATION_STATUS_ENUM.' end if opts[:sort_order] && !OCI::ServiceMesh::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::ServiceMesh::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeAccepted.' end path = '/workRequests' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id] query_params[:resourceId] = opts[:resource_id] if opts[:resource_id] query_params[:operationStatus] = opts[:operation_status] if opts[:operation_status] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#list_work_requests') do @api_client.call_api( :GET, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::ServiceMesh::Models::WorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 94 def logger @api_client.config.logger end |
#update_access_policy(access_policy_id, update_access_policy_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_access_policy API.
Updates the AccessPolicy.
2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2834 def update_access_policy(access_policy_id, update_access_policy_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_access_policy.' if logger raise "Missing the required parameter 'access_policy_id' when calling update_access_policy." if access_policy_id.nil? raise "Missing the required parameter 'update_access_policy_details' when calling update_access_policy." if update_access_policy_details.nil? raise "Parameter value for 'access_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(access_policy_id) path = '/accessPolicies/{accessPolicyId}'.sub('{accessPolicyId}', access_policy_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_access_policy_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_access_policy') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_ingress_gateway(ingress_gateway_id, update_ingress_gateway_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ingress_gateway API.
Updates the IngressGateway.
2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2904 def update_ingress_gateway(ingress_gateway_id, update_ingress_gateway_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_ingress_gateway.' if logger raise "Missing the required parameter 'ingress_gateway_id' when calling update_ingress_gateway." if ingress_gateway_id.nil? raise "Missing the required parameter 'update_ingress_gateway_details' when calling update_ingress_gateway." if update_ingress_gateway_details.nil? raise "Parameter value for 'ingress_gateway_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_id) path = '/ingressGateways/{ingressGatewayId}'.sub('{ingressGatewayId}', ingress_gateway_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_ingress_gateway_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_ingress_gateway') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_ingress_gateway_route_table(ingress_gateway_route_table_id, update_ingress_gateway_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_ingress_gateway_route_table API.
Updates the IngressGatewayRouteTable.
2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 2974 def update_ingress_gateway_route_table(ingress_gateway_route_table_id, update_ingress_gateway_route_table_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_ingress_gateway_route_table.' if logger raise "Missing the required parameter 'ingress_gateway_route_table_id' when calling update_ingress_gateway_route_table." if ingress_gateway_route_table_id.nil? raise "Missing the required parameter 'update_ingress_gateway_route_table_details' when calling update_ingress_gateway_route_table." if update_ingress_gateway_route_table_details.nil? raise "Parameter value for 'ingress_gateway_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(ingress_gateway_route_table_id) path = '/ingressGatewayRouteTables/{ingressGatewayRouteTableId}'.sub('{ingressGatewayRouteTableId}', ingress_gateway_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_ingress_gateway_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_ingress_gateway_route_table') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_mesh(mesh_id, update_mesh_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_mesh API.
Updates the Mesh.
3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 3044 def update_mesh(mesh_id, update_mesh_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_mesh.' if logger raise "Missing the required parameter 'mesh_id' when calling update_mesh." if mesh_id.nil? raise "Missing the required parameter 'update_mesh_details' when calling update_mesh." if update_mesh_details.nil? raise "Parameter value for 'mesh_id' must not be blank" if OCI::Internal::Util.blank_string?(mesh_id) path = '/meshes/{meshId}'.sub('{meshId}', mesh_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_mesh_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_mesh') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_virtual_deployment(virtual_deployment_id, update_virtual_deployment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_virtual_deployment API.
Updates the VirtualDeployment.
3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 3114 def update_virtual_deployment(virtual_deployment_id, update_virtual_deployment_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_virtual_deployment.' if logger raise "Missing the required parameter 'virtual_deployment_id' when calling update_virtual_deployment." if virtual_deployment_id.nil? raise "Missing the required parameter 'update_virtual_deployment_details' when calling update_virtual_deployment." if update_virtual_deployment_details.nil? raise "Parameter value for 'virtual_deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_deployment_id) path = '/virtualDeployments/{virtualDeploymentId}'.sub('{virtualDeploymentId}', virtual_deployment_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_virtual_deployment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_virtual_deployment') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_virtual_service(virtual_service_id, update_virtual_service_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_virtual_service API.
Updates the VirtualService.
3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 3184 def update_virtual_service(virtual_service_id, update_virtual_service_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_virtual_service.' if logger raise "Missing the required parameter 'virtual_service_id' when calling update_virtual_service." if virtual_service_id.nil? raise "Missing the required parameter 'update_virtual_service_details' when calling update_virtual_service." if update_virtual_service_details.nil? raise "Parameter value for 'virtual_service_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_id) path = '/virtualServices/{virtualServiceId}'.sub('{virtualServiceId}', virtual_service_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_virtual_service_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_virtual_service') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_virtual_service_route_table(virtual_service_route_table_id, update_virtual_service_route_table_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_virtual_service_route_table API.
Updates the VirtualServiceRouteTable.
3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 |
# File 'lib/oci/service_mesh/service_mesh_client.rb', line 3254 def update_virtual_service_route_table(virtual_service_route_table_id, update_virtual_service_route_table_details, opts = {}) logger.debug 'Calling operation ServiceMeshClient#update_virtual_service_route_table.' if logger raise "Missing the required parameter 'virtual_service_route_table_id' when calling update_virtual_service_route_table." if virtual_service_route_table_id.nil? raise "Missing the required parameter 'update_virtual_service_route_table_details' when calling update_virtual_service_route_table." if update_virtual_service_route_table_details.nil? raise "Parameter value for 'virtual_service_route_table_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_service_route_table_id) path = '/virtualServiceRouteTables/{virtualServiceRouteTableId}'.sub('{virtualServiceRouteTableId}', virtual_service_route_table_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header Params header_params = {} header_params[:accept] = 'application/json' header_params[:'content-type'] = 'application/json' header_params[:'if-match'] = opts[:if_match] if opts[:if_match] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(update_virtual_service_route_table_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'ServiceMeshClient#update_virtual_service_route_table') do @api_client.call_api( :PUT, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |