google-cloud-compute-v1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -441,7 +441,7 @@ module Google
441
441
  uri = "/compute/v1/locations/global/firewallPolicies"
442
442
  body = request_pb.firewall_policy_resource.to_json
443
443
  query_string_params = {}
444
- query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
444
+ query_string_params["parentId"] = request_pb.parent_id.to_s
445
445
  query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
446
446
 
447
447
  [uri, body, query_string_params]
@@ -582,7 +582,7 @@ module Google
582
582
  uri = "/compute/v1/locations/global/firewallPolicies/#{request_pb.firewall_policy}/move"
583
583
  body = nil
584
584
  query_string_params = {}
585
- query_string_params["parentId"] = request_pb.parent_id.to_s if request_pb.has_parent_id?
585
+ query_string_params["parentId"] = request_pb.parent_id.to_s
586
586
  query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
587
587
 
588
588
  [uri, body, query_string_params]
@@ -64,6 +64,11 @@ module Google
64
64
  end
65
65
  default_config = Client::Configuration.new parent_config
66
66
 
67
+ default_config.rpcs.get.timeout = 600.0
68
+ default_config.rpcs.get.retry_policy = {
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ }
71
+
67
72
  default_config
68
73
  end
69
74
  yield @configure if block_given?
@@ -134,6 +134,8 @@ module Google
134
134
 
135
135
  default_config.rpcs.reset.timeout = 600.0
136
136
 
137
+ default_config.rpcs.send_diagnostic_interrupt.timeout = 600.0
138
+
137
139
  default_config.rpcs.set_deletion_protection.timeout = 600.0
138
140
 
139
141
  default_config.rpcs.set_disk_auto_delete.timeout = 600.0
@@ -577,8 +577,9 @@ module Google
577
577
  # least one keyword argument is required. To specify no parameters, or to keep all
578
578
  # the default parameter values, pass an empty Hash as a request object (see above).
579
579
  #
580
- # @param direction [::Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest::Direction]
580
+ # @param direction [::String]
581
581
  # The direction of the exchanged routes.
582
+ # Check the Direction enum for the list of possible values.
582
583
  # @param filter [::String]
583
584
  # A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
584
585
  # @param max_results [::Integer]
@@ -64,6 +64,36 @@ module Google
64
64
  end
65
65
  default_config = Client::Configuration.new parent_config
66
66
 
67
+ default_config.rpcs.aggregated_list.timeout = 600.0
68
+ default_config.rpcs.aggregated_list.retry_policy = {
69
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
70
+ }
71
+
72
+ default_config.rpcs.delete.timeout = 600.0
73
+
74
+ default_config.rpcs.get.timeout = 600.0
75
+ default_config.rpcs.get.retry_policy = {
76
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
77
+ }
78
+
79
+ default_config.rpcs.get_iam_policy.timeout = 600.0
80
+ default_config.rpcs.get_iam_policy.retry_policy = {
81
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
82
+ }
83
+
84
+ default_config.rpcs.insert.timeout = 600.0
85
+
86
+ default_config.rpcs.list.timeout = 600.0
87
+ default_config.rpcs.list.retry_policy = {
88
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
89
+ }
90
+
91
+ default_config.rpcs.patch.timeout = 600.0
92
+
93
+ default_config.rpcs.set_iam_policy.timeout = 600.0
94
+
95
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
96
+
67
97
  default_config
68
98
  end
69
99
  yield @configure if block_given?
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end