google-api-client 0.40.2 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  5. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  6. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  7. data/generated/google/apis/appsmarket_v2.rb +1 -1
  8. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  9. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +9 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  11. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  12. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  13. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  14. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  15. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  16. data/generated/google/apis/bigtableadmin_v2/classes.rb +39 -31
  17. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  18. data/generated/google/apis/books_v1.rb +1 -1
  19. data/generated/google/apis/calendar_v3.rb +1 -1
  20. data/generated/google/apis/chat_v1.rb +1 -1
  21. data/generated/google/apis/chat_v1/classes.rb +2 -0
  22. data/generated/google/apis/cloudasset_v1.rb +1 -1
  23. data/generated/google/apis/cloudasset_v1/classes.rb +12 -3
  24. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  25. data/generated/google/apis/cloudasset_v1beta1/classes.rb +948 -36
  26. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  27. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  28. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +18 -19
  30. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +10 -6
  31. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  32. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  34. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  35. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  36. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  37. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -9
  38. data/generated/google/apis/cloudresourcemanager_v1/service.rb +15 -6
  39. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +4 -2
  41. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  43. data/generated/google/apis/compute_alpha.rb +1 -1
  44. data/generated/google/apis/compute_alpha/classes.rb +535 -43
  45. data/generated/google/apis/compute_alpha/representations.rb +167 -0
  46. data/generated/google/apis/compute_alpha/service.rb +922 -172
  47. data/generated/google/apis/compute_beta.rb +1 -1
  48. data/generated/google/apis/compute_beta/classes.rb +107 -42
  49. data/generated/google/apis/compute_beta/representations.rb +20 -0
  50. data/generated/google/apis/compute_v1.rb +1 -1
  51. data/generated/google/apis/compute_v1/classes.rb +22 -10
  52. data/generated/google/apis/compute_v1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +21 -7
  55. data/generated/google/apis/content_v2.rb +1 -1
  56. data/generated/google/apis/content_v2/classes.rb +7 -1
  57. data/generated/google/apis/content_v2/representations.rb +1 -0
  58. data/generated/google/apis/content_v2/service.rb +10 -5
  59. data/generated/google/apis/content_v2_1.rb +1 -1
  60. data/generated/google/apis/content_v2_1/classes.rb +93 -7
  61. data/generated/google/apis/content_v2_1/representations.rb +37 -0
  62. data/generated/google/apis/content_v2_1/service.rb +10 -5
  63. data/generated/google/apis/dataproc_v1.rb +1 -1
  64. data/generated/google/apis/dataproc_v1/classes.rb +46 -0
  65. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  66. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  67. data/generated/google/apis/dataproc_v1beta2/classes.rb +12 -0
  68. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  69. data/generated/google/apis/dialogflow_v2.rb +1 -1
  70. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  71. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  72. data/generated/google/apis/dialogflow_v2beta1/service.rb +28 -4
  73. data/generated/google/apis/documentai_v1beta2.rb +36 -0
  74. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  75. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  76. data/generated/google/apis/documentai_v1beta2/service.rb +269 -0
  77. data/generated/google/apis/drive_v2.rb +1 -1
  78. data/generated/google/apis/drive_v2/service.rb +26 -78
  79. data/generated/google/apis/drive_v3.rb +1 -1
  80. data/generated/google/apis/drive_v3/service.rb +18 -54
  81. data/generated/google/apis/fcm_v1.rb +1 -1
  82. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  83. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  84. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  85. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/service.rb +2 -0
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +910 -43
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +517 -0
  92. data/generated/google/apis/iam_v1.rb +1 -1
  93. data/generated/google/apis/iam_v1/classes.rb +5 -0
  94. data/generated/google/apis/iam_v1/service.rb +4 -0
  95. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  96. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  97. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  98. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  99. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  100. data/generated/google/apis/monitoring_v3.rb +1 -1
  101. data/generated/google/apis/monitoring_v3/classes.rb +56 -17
  102. data/generated/google/apis/people_v1.rb +1 -1
  103. data/generated/google/apis/people_v1/classes.rb +4 -4
  104. data/generated/google/apis/people_v1/service.rb +6 -5
  105. data/generated/google/apis/run_v1.rb +1 -1
  106. data/generated/google/apis/run_v1/classes.rb +6 -6
  107. data/generated/google/apis/run_v1alpha1.rb +1 -1
  108. data/generated/google/apis/run_v1alpha1/classes.rb +6 -6
  109. data/generated/google/apis/run_v1beta1.rb +1 -1
  110. data/generated/google/apis/secretmanager_v1.rb +1 -1
  111. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +10 -10
  114. data/generated/google/apis/securitycenter_v1/service.rb +10 -10
  115. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +10 -10
  117. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +10 -10
  118. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  119. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -2
  120. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  121. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  122. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +21 -2
  123. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -0
  124. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  125. data/generated/google/apis/servicemanagement_v1/classes.rb +117 -37
  126. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  127. data/generated/google/apis/servicenetworking_v1/classes.rb +13 -2
  128. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  129. data/generated/google/apis/servicenetworking_v1beta/classes.rb +13 -2
  130. data/generated/google/apis/serviceusage_v1.rb +1 -1
  131. data/generated/google/apis/serviceusage_v1/classes.rb +27 -2
  132. data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
  133. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  134. data/generated/google/apis/serviceusage_v1beta1/classes.rb +72 -2
  135. data/generated/google/apis/serviceusage_v1beta1/representations.rb +30 -0
  136. data/generated/google/apis/serviceusage_v1beta1/service.rb +37 -0
  137. data/generated/google/apis/slides_v1.rb +1 -1
  138. data/generated/google/apis/slides_v1/classes.rb +4 -0
  139. data/generated/google/apis/vision_v1.rb +1 -1
  140. data/generated/google/apis/vision_v1/classes.rb +18 -0
  141. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  142. data/generated/google/apis/vision_v1p1beta1/classes.rb +18 -0
  143. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  144. data/generated/google/apis/vision_v1p2beta1/classes.rb +18 -0
  145. data/generated/google/apis/youtube_v3.rb +1 -1
  146. data/generated/google/apis/youtube_v3/classes.rb +38 -0
  147. data/generated/google/apis/youtube_v3/representations.rb +27 -0
  148. data/generated/google/apis/youtube_v3/service.rb +32 -0
  149. data/lib/google/apis/version.rb +1 -1
  150. metadata +7 -7
  151. data/generated/google/apis/customsearch_v1.rb +0 -31
  152. data/generated/google/apis/customsearch_v1/classes.rb +0 -1606
  153. data/generated/google/apis/customsearch_v1/representations.rb +0 -372
  154. data/generated/google/apis/customsearch_v1/service.rb +0 -608
@@ -922,6 +922,54 @@ module Google
922
922
  include Google::Apis::Core::JsonObjectSupport
923
923
  end
924
924
 
925
+ class FirewallPolicy
926
+ class Representation < Google::Apis::Core::JsonRepresentation; end
927
+
928
+ include Google::Apis::Core::JsonObjectSupport
929
+ end
930
+
931
+ class FirewallPolicyAssociation
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
937
+ class FirewallPolicyList
938
+ class Representation < Google::Apis::Core::JsonRepresentation; end
939
+
940
+ class Warning
941
+ class Representation < Google::Apis::Core::JsonRepresentation; end
942
+
943
+ class Datum
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
949
+ include Google::Apis::Core::JsonObjectSupport
950
+ end
951
+
952
+ include Google::Apis::Core::JsonObjectSupport
953
+ end
954
+
955
+ class FirewallPolicyRule
956
+ class Representation < Google::Apis::Core::JsonRepresentation; end
957
+
958
+ include Google::Apis::Core::JsonObjectSupport
959
+ end
960
+
961
+ class FirewallPolicyRuleMatcher
962
+ class Representation < Google::Apis::Core::JsonRepresentation; end
963
+
964
+ include Google::Apis::Core::JsonObjectSupport
965
+ end
966
+
967
+ class FirewallPolicyRuleMatcherLayer4Config
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
925
973
  class FixedOrPercent
926
974
  class Representation < Google::Apis::Core::JsonRepresentation; end
927
975
 
@@ -1522,6 +1570,12 @@ module Google
1522
1570
  include Google::Apis::Core::JsonObjectSupport
1523
1571
  end
1524
1572
 
1573
+ class InstanceGroupManagerStatusStatefulPerInstanceConfigs
1574
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1575
+
1576
+ include Google::Apis::Core::JsonObjectSupport
1577
+ end
1578
+
1525
1579
  class InstanceGroupManagerStatusVersionTarget
1526
1580
  class Representation < Google::Apis::Core::JsonRepresentation; end
1527
1581
 
@@ -5713,6 +5767,7 @@ module Google
5713
5767
  property :long_term_release, as: 'longTermRelease'
5714
5768
  property :machine_type, as: 'machineType'
5715
5769
  property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
5770
+ property :maintenance_interval, as: 'maintenanceInterval'
5716
5771
  property :min_cpu_platform, as: 'minCpuPlatform'
5717
5772
  end
5718
5773
  end
@@ -7172,6 +7227,104 @@ module Google
7172
7227
  end
7173
7228
  end
7174
7229
 
7230
+ class FirewallPolicy
7231
+ # @private
7232
+ class Representation < Google::Apis::Core::JsonRepresentation
7233
+ collection :associations, as: 'associations', class: Google::Apis::ComputeAlpha::FirewallPolicyAssociation, decorator: Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
7234
+
7235
+ property :creation_timestamp, as: 'creationTimestamp'
7236
+ property :description, as: 'description'
7237
+ property :display_name, as: 'displayName'
7238
+ property :fingerprint, :base64 => true, as: 'fingerprint'
7239
+ property :id, :numeric_string => true, as: 'id'
7240
+ property :kind, as: 'kind'
7241
+ property :name, as: 'name'
7242
+ property :parent, as: 'parent'
7243
+ property :rule_tuple_count, as: 'ruleTupleCount'
7244
+ collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::FirewallPolicyRule, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
7245
+
7246
+ property :self_link, as: 'selfLink'
7247
+ property :self_link_with_id, as: 'selfLinkWithId'
7248
+ end
7249
+ end
7250
+
7251
+ class FirewallPolicyAssociation
7252
+ # @private
7253
+ class Representation < Google::Apis::Core::JsonRepresentation
7254
+ property :attachment_target, as: 'attachmentTarget'
7255
+ property :display_name, as: 'displayName'
7256
+ property :firewall_policy_id, as: 'firewallPolicyId'
7257
+ property :name, as: 'name'
7258
+ end
7259
+ end
7260
+
7261
+ class FirewallPolicyList
7262
+ # @private
7263
+ class Representation < Google::Apis::Core::JsonRepresentation
7264
+ property :id, as: 'id'
7265
+ collection :items, as: 'items', class: Google::Apis::ComputeAlpha::FirewallPolicy, decorator: Google::Apis::ComputeAlpha::FirewallPolicy::Representation
7266
+
7267
+ property :kind, as: 'kind'
7268
+ property :next_page_token, as: 'nextPageToken'
7269
+ property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning, decorator: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Representation
7270
+
7271
+ end
7272
+
7273
+ class Warning
7274
+ # @private
7275
+ class Representation < Google::Apis::Core::JsonRepresentation
7276
+ property :code, as: 'code'
7277
+ collection :data, as: 'data', class: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::FirewallPolicyList::Warning::Datum::Representation
7278
+
7279
+ property :message, as: 'message'
7280
+ end
7281
+
7282
+ class Datum
7283
+ # @private
7284
+ class Representation < Google::Apis::Core::JsonRepresentation
7285
+ property :key, as: 'key'
7286
+ property :value, as: 'value'
7287
+ end
7288
+ end
7289
+ end
7290
+ end
7291
+
7292
+ class FirewallPolicyRule
7293
+ # @private
7294
+ class Representation < Google::Apis::Core::JsonRepresentation
7295
+ property :action, as: 'action'
7296
+ property :description, as: 'description'
7297
+ property :direction, as: 'direction'
7298
+ property :enable_logging, as: 'enableLogging'
7299
+ property :kind, as: 'kind'
7300
+ property :match, as: 'match', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcher::Representation
7301
+
7302
+ property :preview, as: 'preview'
7303
+ property :priority, as: 'priority'
7304
+ property :rule_tuple_count, as: 'ruleTupleCount'
7305
+ collection :target_resources, as: 'targetResources'
7306
+ collection :target_service_accounts, as: 'targetServiceAccounts'
7307
+ end
7308
+ end
7309
+
7310
+ class FirewallPolicyRuleMatcher
7311
+ # @private
7312
+ class Representation < Google::Apis::Core::JsonRepresentation
7313
+ collection :dest_ip_ranges, as: 'destIpRanges'
7314
+ collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleMatcherLayer4Config::Representation
7315
+
7316
+ collection :src_ip_ranges, as: 'srcIpRanges'
7317
+ end
7318
+ end
7319
+
7320
+ class FirewallPolicyRuleMatcherLayer4Config
7321
+ # @private
7322
+ class Representation < Google::Apis::Core::JsonRepresentation
7323
+ property :ip_protocol, as: 'ipProtocol'
7324
+ collection :ports, as: 'ports'
7325
+ end
7326
+ end
7327
+
7175
7328
  class FixedOrPercent
7176
7329
  # @private
7177
7330
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8453,6 +8606,15 @@ module Google
8453
8606
  class Representation < Google::Apis::Core::JsonRepresentation
8454
8607
  property :has_stateful_config, as: 'hasStatefulConfig'
8455
8608
  property :is_stateful, as: 'isStateful'
8609
+ property :per_instance_configs, as: 'perInstanceConfigs', class: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerStatusStatefulPerInstanceConfigs::Representation
8610
+
8611
+ end
8612
+ end
8613
+
8614
+ class InstanceGroupManagerStatusStatefulPerInstanceConfigs
8615
+ # @private
8616
+ class Representation < Google::Apis::Core::JsonRepresentation
8617
+ property :all_effective, as: 'allEffective'
8456
8618
  end
8457
8619
  end
8458
8620
 
@@ -10006,6 +10168,7 @@ module Google
10006
10168
  property :auto_create_subnetworks, as: 'autoCreateSubnetworks'
10007
10169
  property :creation_timestamp, as: 'creationTimestamp'
10008
10170
  property :description, as: 'description'
10171
+ property :firewall_policy, as: 'firewallPolicy'
10009
10172
  property :gateway_i_pv4, as: 'gatewayIPv4'
10010
10173
  property :id, :numeric_string => true, as: 'id'
10011
10174
  property :kind, as: 'kind'
@@ -11314,6 +11477,7 @@ module Google
11314
11477
  property :name, as: 'name'
11315
11478
  property :preserved_state, as: 'preservedState', class: Google::Apis::ComputeAlpha::PreservedState, decorator: Google::Apis::ComputeAlpha::PreservedState::Representation
11316
11479
 
11480
+ property :status, as: 'status'
11317
11481
  end
11318
11482
  end
11319
11483
 
@@ -13159,6 +13323,7 @@ module Google
13159
13323
 
13160
13324
  property :authorization_config, as: 'authorizationConfig', class: Google::Apis::ComputeAlpha::AuthorizationConfig, decorator: Google::Apis::ComputeAlpha::AuthorizationConfig::Representation
13161
13325
 
13326
+ property :client_tls_policy, as: 'clientTlsPolicy'
13162
13327
  property :client_tls_settings, as: 'clientTlsSettings', class: Google::Apis::ComputeAlpha::ClientTlsSettings, decorator: Google::Apis::ComputeAlpha::ClientTlsSettings::Representation
13163
13328
 
13164
13329
  collection :subject_alt_names, as: 'subjectAltNames'
@@ -14081,6 +14246,7 @@ module Google
14081
14246
  class Representation < Google::Apis::Core::JsonRepresentation
14082
14247
  property :authentication, as: 'authentication'
14083
14248
  property :authorization, as: 'authorization'
14249
+ property :authorization_policy, as: 'authorizationPolicy'
14084
14250
  property :certificate_map, as: 'certificateMap'
14085
14251
  property :creation_timestamp, as: 'creationTimestamp'
14086
14252
  property :description, as: 'description'
@@ -14092,6 +14258,7 @@ module Google
14092
14258
  property :region, as: 'region'
14093
14259
  property :self_link, as: 'selfLink'
14094
14260
  property :self_link_with_id, as: 'selfLinkWithId'
14261
+ property :server_tls_policy, as: 'serverTlsPolicy'
14095
14262
  collection :ssl_certificates, as: 'sslCertificates'
14096
14263
  property :ssl_policy, as: 'sslPolicy'
14097
14264
  property :url_map, as: 'urlMap'
@@ -8534,6 +8534,9 @@ module Google
8534
8534
  # @param [String] page_token
8535
8535
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
8536
8536
  # by a previous list request to get the next page of results.
8537
+ # @param [Boolean] return_partial_success
8538
+ # Opt-in for partial success behavior which provides partial results in case of
8539
+ # failure. The default value is false and the logic is the same as today.
8537
8540
  # @param [String] fields
8538
8541
  # Selector specifying which fields to include in a partial response.
8539
8542
  # @param [String] quota_user
@@ -8553,7 +8556,7 @@ module Google
8553
8556
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8554
8557
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8555
8558
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8556
- def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8559
+ def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8557
8560
  command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
8558
8561
  command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse::Representation
8559
8562
  command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersListManagedInstancesResponse
@@ -8564,6 +8567,7 @@ module Google
8564
8567
  command.query['maxResults'] = max_results unless max_results.nil?
8565
8568
  command.query['orderBy'] = order_by unless order_by.nil?
8566
8569
  command.query['pageToken'] = page_token unless page_token.nil?
8570
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
8567
8571
  command.query['fields'] = fields unless fields.nil?
8568
8572
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8569
8573
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -15212,38 +15216,864 @@ module Google
15212
15216
  # Request-specific options
15213
15217
  #
15214
15218
  # @yield [result, err] Result & error if block supplied
15215
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15219
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15220
+ # @yieldparam err [StandardError] error object if request failed
15221
+ #
15222
+ # @return [Google::Apis::ComputeAlpha::Operation]
15223
+ #
15224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15227
+ def delete_network_endpoint_group(project, zone, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15228
+ command = make_simple_command(:delete, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
15229
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15230
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15231
+ command.params['project'] = project unless project.nil?
15232
+ command.params['zone'] = zone unless zone.nil?
15233
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15234
+ command.query['requestId'] = request_id unless request_id.nil?
15235
+ command.query['fields'] = fields unless fields.nil?
15236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15237
+ command.query['userIp'] = user_ip unless user_ip.nil?
15238
+ execute_or_queue_command(command, &block)
15239
+ end
15240
+
15241
+ # Detach a list of network endpoints from the specified network endpoint group.
15242
+ # @param [String] project
15243
+ # Project ID for this request.
15244
+ # @param [String] zone
15245
+ # The name of the zone where the network endpoint group is located. It should
15246
+ # comply with RFC1035.
15247
+ # @param [String] network_endpoint_group
15248
+ # The name of the network endpoint group where you are removing network
15249
+ # endpoints. It should comply with RFC1035.
15250
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsDetachEndpointsRequest] network_endpoint_groups_detach_endpoints_request_object
15251
+ # @param [String] request_id
15252
+ # An optional request ID to identify requests. Specify a unique request ID so
15253
+ # that if you must retry your request, the server will know to ignore the
15254
+ # request if it has already been completed.
15255
+ # For example, consider a situation where you make an initial request and the
15256
+ # request times out. If you make the request again with the same request ID, the
15257
+ # server can check if original operation with the same request ID was received,
15258
+ # and if so, will ignore the second request. This prevents clients from
15259
+ # accidentally creating duplicate commitments.
15260
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15261
+ # supported (00000000-0000-0000-0000-000000000000).
15262
+ # @param [String] fields
15263
+ # Selector specifying which fields to include in a partial response.
15264
+ # @param [String] quota_user
15265
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15266
+ # characters.
15267
+ # @param [String] user_ip
15268
+ # Deprecated. Please use quotaUser instead.
15269
+ # @param [Google::Apis::RequestOptions] options
15270
+ # Request-specific options
15271
+ #
15272
+ # @yield [result, err] Result & error if block supplied
15273
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15274
+ # @yieldparam err [StandardError] error object if request failed
15275
+ #
15276
+ # @return [Google::Apis::ComputeAlpha::Operation]
15277
+ #
15278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15281
+ def detach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15282
+ command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options)
15283
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsDetachEndpointsRequest::Representation
15284
+ command.request_object = network_endpoint_groups_detach_endpoints_request_object
15285
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15286
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15287
+ command.params['project'] = project unless project.nil?
15288
+ command.params['zone'] = zone unless zone.nil?
15289
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15290
+ command.query['requestId'] = request_id unless request_id.nil?
15291
+ command.query['fields'] = fields unless fields.nil?
15292
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15293
+ command.query['userIp'] = user_ip unless user_ip.nil?
15294
+ execute_or_queue_command(command, &block)
15295
+ end
15296
+
15297
+ # Returns the specified network endpoint group. Gets a list of available network
15298
+ # endpoint groups by making a list() request.
15299
+ # @param [String] project
15300
+ # Project ID for this request.
15301
+ # @param [String] zone
15302
+ # The name of the zone where the network endpoint group is located. It should
15303
+ # comply with RFC1035.
15304
+ # @param [String] network_endpoint_group
15305
+ # The name of the network endpoint group. It should comply with RFC1035.
15306
+ # @param [String] fields
15307
+ # Selector specifying which fields to include in a partial response.
15308
+ # @param [String] quota_user
15309
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15310
+ # characters.
15311
+ # @param [String] user_ip
15312
+ # Deprecated. Please use quotaUser instead.
15313
+ # @param [Google::Apis::RequestOptions] options
15314
+ # Request-specific options
15315
+ #
15316
+ # @yield [result, err] Result & error if block supplied
15317
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
15318
+ # @yieldparam err [StandardError] error object if request failed
15319
+ #
15320
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
15321
+ #
15322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15325
+ def get_network_endpoint_group(project, zone, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15326
+ command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
15327
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
15328
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
15329
+ command.params['project'] = project unless project.nil?
15330
+ command.params['zone'] = zone unless zone.nil?
15331
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15332
+ command.query['fields'] = fields unless fields.nil?
15333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15334
+ command.query['userIp'] = user_ip unless user_ip.nil?
15335
+ execute_or_queue_command(command, &block)
15336
+ end
15337
+
15338
+ # Creates a network endpoint group in the specified project using the parameters
15339
+ # that are included in the request.
15340
+ # @param [String] project
15341
+ # Project ID for this request.
15342
+ # @param [String] zone
15343
+ # The name of the zone where you want to create the network endpoint group. It
15344
+ # should comply with RFC1035.
15345
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
15346
+ # @param [String] request_id
15347
+ # An optional request ID to identify requests. Specify a unique request ID so
15348
+ # that if you must retry your request, the server will know to ignore the
15349
+ # request if it has already been completed.
15350
+ # For example, consider a situation where you make an initial request and the
15351
+ # request times out. If you make the request again with the same request ID, the
15352
+ # server can check if original operation with the same request ID was received,
15353
+ # and if so, will ignore the second request. This prevents clients from
15354
+ # accidentally creating duplicate commitments.
15355
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15356
+ # supported (00000000-0000-0000-0000-000000000000).
15357
+ # @param [String] fields
15358
+ # Selector specifying which fields to include in a partial response.
15359
+ # @param [String] quota_user
15360
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15361
+ # characters.
15362
+ # @param [String] user_ip
15363
+ # Deprecated. Please use quotaUser instead.
15364
+ # @param [Google::Apis::RequestOptions] options
15365
+ # Request-specific options
15366
+ #
15367
+ # @yield [result, err] Result & error if block supplied
15368
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15369
+ # @yieldparam err [StandardError] error object if request failed
15370
+ #
15371
+ # @return [Google::Apis::ComputeAlpha::Operation]
15372
+ #
15373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15376
+ def insert_network_endpoint_group(project, zone, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15377
+ command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups', options)
15378
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
15379
+ command.request_object = network_endpoint_group_object
15380
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15381
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15382
+ command.params['project'] = project unless project.nil?
15383
+ command.params['zone'] = zone unless zone.nil?
15384
+ command.query['requestId'] = request_id unless request_id.nil?
15385
+ command.query['fields'] = fields unless fields.nil?
15386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15387
+ command.query['userIp'] = user_ip unless user_ip.nil?
15388
+ execute_or_queue_command(command, &block)
15389
+ end
15390
+
15391
+ # Retrieves the list of network endpoint groups that are located in the
15392
+ # specified project and zone.
15393
+ # @param [String] project
15394
+ # Project ID for this request.
15395
+ # @param [String] zone
15396
+ # The name of the zone where the network endpoint group is located. It should
15397
+ # comply with RFC1035.
15398
+ # @param [String] filter
15399
+ # A filter expression that filters resources listed in the response. The
15400
+ # expression must specify the field name, a comparison operator, and the value
15401
+ # that you want to use for filtering. The value must be a string, a number, or a
15402
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
15403
+ # For example, if you are filtering Compute Engine instances, you can exclude
15404
+ # instances named `example-instance` by specifying `name != example-instance`.
15405
+ # You can also filter nested fields. For example, you could specify `scheduling.
15406
+ # automaticRestart = false` to include instances only if they are not scheduled
15407
+ # for automatic restarts. You can use filtering on nested fields to filter based
15408
+ # on resource labels.
15409
+ # To filter on multiple expressions, provide each separate expression within
15410
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
15411
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
15412
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
15413
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
15414
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
15415
+ # @param [Fixnum] max_results
15416
+ # The maximum number of results per page that should be returned. If the number
15417
+ # of available results is larger than `maxResults`, Compute Engine returns a `
15418
+ # nextPageToken` that can be used to get the next page of results in subsequent
15419
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15420
+ # @param [String] order_by
15421
+ # Sorts list results by a certain order. By default, results are returned in
15422
+ # alphanumerical order based on the resource name.
15423
+ # You can also sort results in descending order based on the creation timestamp
15424
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
15425
+ # creationTimestamp` field in reverse chronological order (newest result first).
15426
+ # Use this to sort resources like operations so that the newest operation is
15427
+ # returned first.
15428
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15429
+ # @param [String] page_token
15430
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15431
+ # by a previous list request to get the next page of results.
15432
+ # @param [Boolean] return_partial_success
15433
+ # Opt-in for partial success behavior which provides partial results in case of
15434
+ # failure. The default value is false and the logic is the same as today.
15435
+ # @param [String] fields
15436
+ # Selector specifying which fields to include in a partial response.
15437
+ # @param [String] quota_user
15438
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15439
+ # characters.
15440
+ # @param [String] user_ip
15441
+ # Deprecated. Please use quotaUser instead.
15442
+ # @param [Google::Apis::RequestOptions] options
15443
+ # Request-specific options
15444
+ #
15445
+ # @yield [result, err] Result & error if block supplied
15446
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
15447
+ # @yieldparam err [StandardError] error object if request failed
15448
+ #
15449
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
15450
+ #
15451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15454
+ def list_network_endpoint_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15455
+ command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups', options)
15456
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
15457
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
15458
+ command.params['project'] = project unless project.nil?
15459
+ command.params['zone'] = zone unless zone.nil?
15460
+ command.query['filter'] = filter unless filter.nil?
15461
+ command.query['maxResults'] = max_results unless max_results.nil?
15462
+ command.query['orderBy'] = order_by unless order_by.nil?
15463
+ command.query['pageToken'] = page_token unless page_token.nil?
15464
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15465
+ command.query['fields'] = fields unless fields.nil?
15466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15467
+ command.query['userIp'] = user_ip unless user_ip.nil?
15468
+ execute_or_queue_command(command, &block)
15469
+ end
15470
+
15471
+ # Lists the network endpoints in the specified network endpoint group.
15472
+ # @param [String] project
15473
+ # Project ID for this request.
15474
+ # @param [String] zone
15475
+ # The name of the zone where the network endpoint group is located. It should
15476
+ # comply with RFC1035.
15477
+ # @param [String] network_endpoint_group
15478
+ # The name of the network endpoint group from which you want to generate a list
15479
+ # of included network endpoints. It should comply with RFC1035.
15480
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequest] network_endpoint_groups_list_endpoints_request_object
15481
+ # @param [String] filter
15482
+ # A filter expression that filters resources listed in the response. The
15483
+ # expression must specify the field name, a comparison operator, and the value
15484
+ # that you want to use for filtering. The value must be a string, a number, or a
15485
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
15486
+ # For example, if you are filtering Compute Engine instances, you can exclude
15487
+ # instances named `example-instance` by specifying `name != example-instance`.
15488
+ # You can also filter nested fields. For example, you could specify `scheduling.
15489
+ # automaticRestart = false` to include instances only if they are not scheduled
15490
+ # for automatic restarts. You can use filtering on nested fields to filter based
15491
+ # on resource labels.
15492
+ # To filter on multiple expressions, provide each separate expression within
15493
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
15494
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
15495
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
15496
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
15497
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
15498
+ # @param [Fixnum] max_results
15499
+ # The maximum number of results per page that should be returned. If the number
15500
+ # of available results is larger than `maxResults`, Compute Engine returns a `
15501
+ # nextPageToken` that can be used to get the next page of results in subsequent
15502
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15503
+ # @param [String] order_by
15504
+ # Sorts list results by a certain order. By default, results are returned in
15505
+ # alphanumerical order based on the resource name.
15506
+ # You can also sort results in descending order based on the creation timestamp
15507
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
15508
+ # creationTimestamp` field in reverse chronological order (newest result first).
15509
+ # Use this to sort resources like operations so that the newest operation is
15510
+ # returned first.
15511
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15512
+ # @param [String] page_token
15513
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15514
+ # by a previous list request to get the next page of results.
15515
+ # @param [Boolean] return_partial_success
15516
+ # Opt-in for partial success behavior which provides partial results in case of
15517
+ # failure. The default value is false and the logic is the same as today.
15518
+ # @param [String] fields
15519
+ # Selector specifying which fields to include in a partial response.
15520
+ # @param [String] quota_user
15521
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15522
+ # characters.
15523
+ # @param [String] user_ip
15524
+ # Deprecated. Please use quotaUser instead.
15525
+ # @param [Google::Apis::RequestOptions] options
15526
+ # Request-specific options
15527
+ #
15528
+ # @yield [result, err] Result & error if block supplied
15529
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints] parsed result object
15530
+ # @yieldparam err [StandardError] error object if request failed
15531
+ #
15532
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints]
15533
+ #
15534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15537
+ def list_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_list_endpoints_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15538
+ command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options)
15539
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequest::Representation
15540
+ command.request_object = network_endpoint_groups_list_endpoints_request_object
15541
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints::Representation
15542
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints
15543
+ command.params['project'] = project unless project.nil?
15544
+ command.params['zone'] = zone unless zone.nil?
15545
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15546
+ command.query['filter'] = filter unless filter.nil?
15547
+ command.query['maxResults'] = max_results unless max_results.nil?
15548
+ command.query['orderBy'] = order_by unless order_by.nil?
15549
+ command.query['pageToken'] = page_token unless page_token.nil?
15550
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15551
+ command.query['fields'] = fields unless fields.nil?
15552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15553
+ command.query['userIp'] = user_ip unless user_ip.nil?
15554
+ execute_or_queue_command(command, &block)
15555
+ end
15556
+
15557
+ # Returns permissions that a caller has on the specified resource.
15558
+ # @param [String] project
15559
+ # Project ID for this request.
15560
+ # @param [String] zone
15561
+ # The name of the zone for this request.
15562
+ # @param [String] resource
15563
+ # Name or id of the resource for this request.
15564
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
15565
+ # @param [String] fields
15566
+ # Selector specifying which fields to include in a partial response.
15567
+ # @param [String] quota_user
15568
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15569
+ # characters.
15570
+ # @param [String] user_ip
15571
+ # Deprecated. Please use quotaUser instead.
15572
+ # @param [Google::Apis::RequestOptions] options
15573
+ # Request-specific options
15574
+ #
15575
+ # @yield [result, err] Result & error if block supplied
15576
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
15577
+ # @yieldparam err [StandardError] error object if request failed
15578
+ #
15579
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
15580
+ #
15581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15584
+ def test_network_endpoint_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15585
+ command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions', options)
15586
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
15587
+ command.request_object = test_permissions_request_object
15588
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
15589
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
15590
+ command.params['project'] = project unless project.nil?
15591
+ command.params['zone'] = zone unless zone.nil?
15592
+ command.params['resource'] = resource unless resource.nil?
15593
+ command.query['fields'] = fields unless fields.nil?
15594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15595
+ command.query['userIp'] = user_ip unless user_ip.nil?
15596
+ execute_or_queue_command(command, &block)
15597
+ end
15598
+
15599
+ # Inserts an association for the specified firewall policy.
15600
+ # @param [String] project
15601
+ # Project ID for this request.
15602
+ # @param [String] firewall_policy
15603
+ # Name of the firewall policy to update.
15604
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
15605
+ # @param [Boolean] replace_existing_association
15606
+ # Indicates whether or not to replace it if an association of the attachment
15607
+ # already exists. This is false by default, in which case an error will be
15608
+ # returned if an association already exists.
15609
+ # @param [String] request_id
15610
+ # An optional request ID to identify requests. Specify a unique request ID so
15611
+ # that if you must retry your request, the server will know to ignore the
15612
+ # request if it has already been completed.
15613
+ # For example, consider a situation where you make an initial request and the
15614
+ # request times out. If you make the request again with the same request ID, the
15615
+ # server can check if original operation with the same request ID was received,
15616
+ # and if so, will ignore the second request. This prevents clients from
15617
+ # accidentally creating duplicate commitments.
15618
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15619
+ # supported (00000000-0000-0000-0000-000000000000).
15620
+ # @param [String] fields
15621
+ # Selector specifying which fields to include in a partial response.
15622
+ # @param [String] quota_user
15623
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15624
+ # characters.
15625
+ # @param [String] user_ip
15626
+ # Deprecated. Please use quotaUser instead.
15627
+ # @param [Google::Apis::RequestOptions] options
15628
+ # Request-specific options
15629
+ #
15630
+ # @yield [result, err] Result & error if block supplied
15631
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15632
+ # @yieldparam err [StandardError] error object if request failed
15633
+ #
15634
+ # @return [Google::Apis::ComputeAlpha::Operation]
15635
+ #
15636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15639
+ def add_network_firewall_policy_association(project, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15640
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addAssociation', options)
15641
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
15642
+ command.request_object = firewall_policy_association_object
15643
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15644
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15645
+ command.params['project'] = project unless project.nil?
15646
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15647
+ command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
15648
+ command.query['requestId'] = request_id unless request_id.nil?
15649
+ command.query['fields'] = fields unless fields.nil?
15650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15651
+ command.query['userIp'] = user_ip unless user_ip.nil?
15652
+ execute_or_queue_command(command, &block)
15653
+ end
15654
+
15655
+ # Inserts a rule into a firewall policy.
15656
+ # @param [String] project
15657
+ # Project ID for this request.
15658
+ # @param [String] firewall_policy
15659
+ # Name of the firewall policy to update.
15660
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
15661
+ # @param [String] fields
15662
+ # Selector specifying which fields to include in a partial response.
15663
+ # @param [String] quota_user
15664
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15665
+ # characters.
15666
+ # @param [String] user_ip
15667
+ # Deprecated. Please use quotaUser instead.
15668
+ # @param [Google::Apis::RequestOptions] options
15669
+ # Request-specific options
15670
+ #
15671
+ # @yield [result, err] Result & error if block supplied
15672
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15673
+ # @yieldparam err [StandardError] error object if request failed
15674
+ #
15675
+ # @return [Google::Apis::ComputeAlpha::Operation]
15676
+ #
15677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15680
+ def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15681
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
15682
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
15683
+ command.request_object = firewall_policy_rule_object
15684
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15685
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15686
+ command.params['project'] = project unless project.nil?
15687
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15688
+ command.query['fields'] = fields unless fields.nil?
15689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15690
+ command.query['userIp'] = user_ip unless user_ip.nil?
15691
+ execute_or_queue_command(command, &block)
15692
+ end
15693
+
15694
+ # Copies rules to the specified firewall policy.
15695
+ # @param [String] project
15696
+ # Project ID for this request.
15697
+ # @param [String] firewall_policy
15698
+ # Name of the firewall policy to update.
15699
+ # @param [String] request_id
15700
+ # An optional request ID to identify requests. Specify a unique request ID so
15701
+ # that if you must retry your request, the server will know to ignore the
15702
+ # request if it has already been completed.
15703
+ # For example, consider a situation where you make an initial request and the
15704
+ # request times out. If you make the request again with the same request ID, the
15705
+ # server can check if original operation with the same request ID was received,
15706
+ # and if so, will ignore the second request. This prevents clients from
15707
+ # accidentally creating duplicate commitments.
15708
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15709
+ # supported (00000000-0000-0000-0000-000000000000).
15710
+ # @param [String] source_firewall_policy
15711
+ # The firewall policy from which to copy rules.
15712
+ # @param [String] fields
15713
+ # Selector specifying which fields to include in a partial response.
15714
+ # @param [String] quota_user
15715
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15716
+ # characters.
15717
+ # @param [String] user_ip
15718
+ # Deprecated. Please use quotaUser instead.
15719
+ # @param [Google::Apis::RequestOptions] options
15720
+ # Request-specific options
15721
+ #
15722
+ # @yield [result, err] Result & error if block supplied
15723
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15724
+ # @yieldparam err [StandardError] error object if request failed
15725
+ #
15726
+ # @return [Google::Apis::ComputeAlpha::Operation]
15727
+ #
15728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15731
+ def clone_network_firewall_policy_rules(project, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15732
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/cloneRules', options)
15733
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15734
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15735
+ command.params['project'] = project unless project.nil?
15736
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15737
+ command.query['requestId'] = request_id unless request_id.nil?
15738
+ command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
15739
+ command.query['fields'] = fields unless fields.nil?
15740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15741
+ command.query['userIp'] = user_ip unless user_ip.nil?
15742
+ execute_or_queue_command(command, &block)
15743
+ end
15744
+
15745
+ # Deletes the specified policy.
15746
+ # @param [String] project
15747
+ # Project ID for this request.
15748
+ # @param [String] firewall_policy
15749
+ # Name of the firewall policy to delete.
15750
+ # @param [String] request_id
15751
+ # An optional request ID to identify requests. Specify a unique request ID so
15752
+ # that if you must retry your request, the server will know to ignore the
15753
+ # request if it has already been completed.
15754
+ # For example, consider a situation where you make an initial request and the
15755
+ # request times out. If you make the request again with the same request ID, the
15756
+ # server can check if original operation with the same request ID was received,
15757
+ # and if so, will ignore the second request. This prevents clients from
15758
+ # accidentally creating duplicate commitments.
15759
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15760
+ # supported (00000000-0000-0000-0000-000000000000).
15761
+ # @param [String] fields
15762
+ # Selector specifying which fields to include in a partial response.
15763
+ # @param [String] quota_user
15764
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15765
+ # characters.
15766
+ # @param [String] user_ip
15767
+ # Deprecated. Please use quotaUser instead.
15768
+ # @param [Google::Apis::RequestOptions] options
15769
+ # Request-specific options
15770
+ #
15771
+ # @yield [result, err] Result & error if block supplied
15772
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15773
+ # @yieldparam err [StandardError] error object if request failed
15774
+ #
15775
+ # @return [Google::Apis::ComputeAlpha::Operation]
15776
+ #
15777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15780
+ def delete_network_firewall_policy(project, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15781
+ command = make_simple_command(:delete, '{project}/global/firewallPolicies/{firewallPolicy}', options)
15782
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15783
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15784
+ command.params['project'] = project unless project.nil?
15785
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15786
+ command.query['requestId'] = request_id unless request_id.nil?
15787
+ command.query['fields'] = fields unless fields.nil?
15788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15789
+ command.query['userIp'] = user_ip unless user_ip.nil?
15790
+ execute_or_queue_command(command, &block)
15791
+ end
15792
+
15793
+ # Returns the specified network firewall policy.
15794
+ # @param [String] project
15795
+ # Project ID for this request.
15796
+ # @param [String] firewall_policy
15797
+ # Name of the firewall policy to get.
15798
+ # @param [String] fields
15799
+ # Selector specifying which fields to include in a partial response.
15800
+ # @param [String] quota_user
15801
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15802
+ # characters.
15803
+ # @param [String] user_ip
15804
+ # Deprecated. Please use quotaUser instead.
15805
+ # @param [Google::Apis::RequestOptions] options
15806
+ # Request-specific options
15807
+ #
15808
+ # @yield [result, err] Result & error if block supplied
15809
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
15810
+ # @yieldparam err [StandardError] error object if request failed
15811
+ #
15812
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicy]
15813
+ #
15814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15817
+ def get_network_firewall_policy(project, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15818
+ command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}', options)
15819
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
15820
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
15821
+ command.params['project'] = project unless project.nil?
15822
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15823
+ command.query['fields'] = fields unless fields.nil?
15824
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15825
+ command.query['userIp'] = user_ip unless user_ip.nil?
15826
+ execute_or_queue_command(command, &block)
15827
+ end
15828
+
15829
+ # Gets an association with the specified name.
15830
+ # @param [String] project
15831
+ # Project ID for this request.
15832
+ # @param [String] firewall_policy
15833
+ # Name of the firewall policy to which the queried rule belongs.
15834
+ # @param [String] name
15835
+ # The name of the association to get from the firewall policy.
15836
+ # @param [String] fields
15837
+ # Selector specifying which fields to include in a partial response.
15838
+ # @param [String] quota_user
15839
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15840
+ # characters.
15841
+ # @param [String] user_ip
15842
+ # Deprecated. Please use quotaUser instead.
15843
+ # @param [Google::Apis::RequestOptions] options
15844
+ # Request-specific options
15845
+ #
15846
+ # @yield [result, err] Result & error if block supplied
15847
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
15848
+ # @yieldparam err [StandardError] error object if request failed
15849
+ #
15850
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
15851
+ #
15852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15855
+ def get_network_firewall_policy_association(project, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15856
+ command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getAssociation', options)
15857
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
15858
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
15859
+ command.params['project'] = project unless project.nil?
15860
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15861
+ command.query['name'] = name unless name.nil?
15862
+ command.query['fields'] = fields unless fields.nil?
15863
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15864
+ command.query['userIp'] = user_ip unless user_ip.nil?
15865
+ execute_or_queue_command(command, &block)
15866
+ end
15867
+
15868
+ # Gets the access control policy for a resource. May be empty if no such policy
15869
+ # or resource exists.
15870
+ # @param [String] project
15871
+ # Project ID for this request.
15872
+ # @param [String] resource
15873
+ # Name or id of the resource for this request.
15874
+ # @param [Fixnum] options_requested_policy_version
15875
+ # Requested IAM Policy version.
15876
+ # @param [String] fields
15877
+ # Selector specifying which fields to include in a partial response.
15878
+ # @param [String] quota_user
15879
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15880
+ # characters.
15881
+ # @param [String] user_ip
15882
+ # Deprecated. Please use quotaUser instead.
15883
+ # @param [Google::Apis::RequestOptions] options
15884
+ # Request-specific options
15885
+ #
15886
+ # @yield [result, err] Result & error if block supplied
15887
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
15888
+ # @yieldparam err [StandardError] error object if request failed
15889
+ #
15890
+ # @return [Google::Apis::ComputeAlpha::Policy]
15891
+ #
15892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15895
+ def get_network_firewall_policy_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15896
+ command = make_simple_command(:get, '{project}/global/firewallPolicies/{resource}/getIamPolicy', options)
15897
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
15898
+ command.response_class = Google::Apis::ComputeAlpha::Policy
15899
+ command.params['project'] = project unless project.nil?
15900
+ command.params['resource'] = resource unless resource.nil?
15901
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
15902
+ command.query['fields'] = fields unless fields.nil?
15903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15904
+ command.query['userIp'] = user_ip unless user_ip.nil?
15905
+ execute_or_queue_command(command, &block)
15906
+ end
15907
+
15908
+ # Gets a rule of the specified priority.
15909
+ # @param [String] project
15910
+ # Project ID for this request.
15911
+ # @param [String] firewall_policy
15912
+ # Name of the firewall policy to which the queried rule belongs.
15913
+ # @param [Fixnum] priority
15914
+ # The priority of the rule to get from the firewall policy.
15915
+ # @param [String] fields
15916
+ # Selector specifying which fields to include in a partial response.
15917
+ # @param [String] quota_user
15918
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15919
+ # characters.
15920
+ # @param [String] user_ip
15921
+ # Deprecated. Please use quotaUser instead.
15922
+ # @param [Google::Apis::RequestOptions] options
15923
+ # Request-specific options
15924
+ #
15925
+ # @yield [result, err] Result & error if block supplied
15926
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
15927
+ # @yieldparam err [StandardError] error object if request failed
15928
+ #
15929
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
15930
+ #
15931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15934
+ def get_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15935
+ command = make_simple_command(:get, '{project}/global/firewallPolicies/{firewallPolicy}/getRule', options)
15936
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
15937
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
15938
+ command.params['project'] = project unless project.nil?
15939
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15940
+ command.query['priority'] = priority unless priority.nil?
15941
+ command.query['fields'] = fields unless fields.nil?
15942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15943
+ command.query['userIp'] = user_ip unless user_ip.nil?
15944
+ execute_or_queue_command(command, &block)
15945
+ end
15946
+
15947
+ # Creates a new policy in the specified project using the data included in the
15948
+ # request.
15949
+ # @param [String] project
15950
+ # Project ID for this request.
15951
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
15952
+ # @param [String] request_id
15953
+ # An optional request ID to identify requests. Specify a unique request ID so
15954
+ # that if you must retry your request, the server will know to ignore the
15955
+ # request if it has already been completed.
15956
+ # For example, consider a situation where you make an initial request and the
15957
+ # request times out. If you make the request again with the same request ID, the
15958
+ # server can check if original operation with the same request ID was received,
15959
+ # and if so, will ignore the second request. This prevents clients from
15960
+ # accidentally creating duplicate commitments.
15961
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15962
+ # supported (00000000-0000-0000-0000-000000000000).
15963
+ # @param [String] fields
15964
+ # Selector specifying which fields to include in a partial response.
15965
+ # @param [String] quota_user
15966
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15967
+ # characters.
15968
+ # @param [String] user_ip
15969
+ # Deprecated. Please use quotaUser instead.
15970
+ # @param [Google::Apis::RequestOptions] options
15971
+ # Request-specific options
15972
+ #
15973
+ # @yield [result, err] Result & error if block supplied
15974
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15975
+ # @yieldparam err [StandardError] error object if request failed
15976
+ #
15977
+ # @return [Google::Apis::ComputeAlpha::Operation]
15978
+ #
15979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15982
+ def insert_network_firewall_policy(project, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15983
+ command = make_simple_command(:post, '{project}/global/firewallPolicies', options)
15984
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
15985
+ command.request_object = firewall_policy_object
15986
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15987
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15988
+ command.params['project'] = project unless project.nil?
15989
+ command.query['requestId'] = request_id unless request_id.nil?
15990
+ command.query['fields'] = fields unless fields.nil?
15991
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15992
+ command.query['userIp'] = user_ip unless user_ip.nil?
15993
+ execute_or_queue_command(command, &block)
15994
+ end
15995
+
15996
+ # Lists all the policies that have been configured for the specified project.
15997
+ # @param [String] project
15998
+ # Project ID for this request.
15999
+ # @param [String] filter
16000
+ # A filter expression that filters resources listed in the response. The
16001
+ # expression must specify the field name, a comparison operator, and the value
16002
+ # that you want to use for filtering. The value must be a string, a number, or a
16003
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
16004
+ # For example, if you are filtering Compute Engine instances, you can exclude
16005
+ # instances named `example-instance` by specifying `name != example-instance`.
16006
+ # You can also filter nested fields. For example, you could specify `scheduling.
16007
+ # automaticRestart = false` to include instances only if they are not scheduled
16008
+ # for automatic restarts. You can use filtering on nested fields to filter based
16009
+ # on resource labels.
16010
+ # To filter on multiple expressions, provide each separate expression within
16011
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
16012
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
16013
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
16014
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
16015
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
16016
+ # @param [Fixnum] max_results
16017
+ # The maximum number of results per page that should be returned. If the number
16018
+ # of available results is larger than `maxResults`, Compute Engine returns a `
16019
+ # nextPageToken` that can be used to get the next page of results in subsequent
16020
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16021
+ # @param [String] order_by
16022
+ # Sorts list results by a certain order. By default, results are returned in
16023
+ # alphanumerical order based on the resource name.
16024
+ # You can also sort results in descending order based on the creation timestamp
16025
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
16026
+ # creationTimestamp` field in reverse chronological order (newest result first).
16027
+ # Use this to sort resources like operations so that the newest operation is
16028
+ # returned first.
16029
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16030
+ # @param [String] page_token
16031
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16032
+ # by a previous list request to get the next page of results.
16033
+ # @param [Boolean] return_partial_success
16034
+ # Opt-in for partial success behavior which provides partial results in case of
16035
+ # failure. The default value is false and the logic is the same as today.
16036
+ # @param [String] fields
16037
+ # Selector specifying which fields to include in a partial response.
16038
+ # @param [String] quota_user
16039
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16040
+ # characters.
16041
+ # @param [String] user_ip
16042
+ # Deprecated. Please use quotaUser instead.
16043
+ # @param [Google::Apis::RequestOptions] options
16044
+ # Request-specific options
16045
+ #
16046
+ # @yield [result, err] Result & error if block supplied
16047
+ # @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
15216
16048
  # @yieldparam err [StandardError] error object if request failed
15217
16049
  #
15218
- # @return [Google::Apis::ComputeAlpha::Operation]
16050
+ # @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
15219
16051
  #
15220
16052
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15221
16053
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15222
16054
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15223
- def delete_network_endpoint_group(project, zone, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15224
- command = make_simple_command(:delete, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
15225
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15226
- command.response_class = Google::Apis::ComputeAlpha::Operation
16055
+ def list_network_firewall_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16056
+ command = make_simple_command(:get, '{project}/global/firewallPolicies', options)
16057
+ command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
16058
+ command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
15227
16059
  command.params['project'] = project unless project.nil?
15228
- command.params['zone'] = zone unless zone.nil?
15229
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15230
- command.query['requestId'] = request_id unless request_id.nil?
16060
+ command.query['filter'] = filter unless filter.nil?
16061
+ command.query['maxResults'] = max_results unless max_results.nil?
16062
+ command.query['orderBy'] = order_by unless order_by.nil?
16063
+ command.query['pageToken'] = page_token unless page_token.nil?
16064
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15231
16065
  command.query['fields'] = fields unless fields.nil?
15232
16066
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15233
16067
  command.query['userIp'] = user_ip unless user_ip.nil?
15234
16068
  execute_or_queue_command(command, &block)
15235
16069
  end
15236
16070
 
15237
- # Detach a list of network endpoints from the specified network endpoint group.
16071
+ # Patches the specified policy with the data included in the request.
15238
16072
  # @param [String] project
15239
16073
  # Project ID for this request.
15240
- # @param [String] zone
15241
- # The name of the zone where the network endpoint group is located. It should
15242
- # comply with RFC1035.
15243
- # @param [String] network_endpoint_group
15244
- # The name of the network endpoint group where you are removing network
15245
- # endpoints. It should comply with RFC1035.
15246
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsDetachEndpointsRequest] network_endpoint_groups_detach_endpoints_request_object
16074
+ # @param [String] firewall_policy
16075
+ # Name of the firewall policy to update.
16076
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
15247
16077
  # @param [String] request_id
15248
16078
  # An optional request ID to identify requests. Specify a unique request ID so
15249
16079
  # that if you must retry your request, the server will know to ignore the
@@ -15274,15 +16104,14 @@ module Google
15274
16104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15275
16105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15276
16106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15277
- def detach_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15278
- command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options)
15279
- command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsDetachEndpointsRequest::Representation
15280
- command.request_object = network_endpoint_groups_detach_endpoints_request_object
16107
+ def patch_network_firewall_policy(project, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16108
+ command = make_simple_command(:patch, '{project}/global/firewallPolicies/{firewallPolicy}', options)
16109
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
16110
+ command.request_object = firewall_policy_object
15281
16111
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15282
16112
  command.response_class = Google::Apis::ComputeAlpha::Operation
15283
16113
  command.params['project'] = project unless project.nil?
15284
- command.params['zone'] = zone unless zone.nil?
15285
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
16114
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
15286
16115
  command.query['requestId'] = request_id unless request_id.nil?
15287
16116
  command.query['fields'] = fields unless fields.nil?
15288
16117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15290,15 +16119,14 @@ module Google
15290
16119
  execute_or_queue_command(command, &block)
15291
16120
  end
15292
16121
 
15293
- # Returns the specified network endpoint group. Gets a list of available network
15294
- # endpoint groups by making a list() request.
16122
+ # Patches a rule of the specified priority.
15295
16123
  # @param [String] project
15296
16124
  # Project ID for this request.
15297
- # @param [String] zone
15298
- # The name of the zone where the network endpoint group is located. It should
15299
- # comply with RFC1035.
15300
- # @param [String] network_endpoint_group
15301
- # The name of the network endpoint group. It should comply with RFC1035.
16125
+ # @param [String] firewall_policy
16126
+ # Name of the firewall policy to update.
16127
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
16128
+ # @param [Fixnum] priority
16129
+ # The priority of the rule to patch.
15302
16130
  # @param [String] fields
15303
16131
  # Selector specifying which fields to include in a partial response.
15304
16132
  # @param [String] quota_user
@@ -15310,35 +16138,36 @@ module Google
15310
16138
  # Request-specific options
15311
16139
  #
15312
16140
  # @yield [result, err] Result & error if block supplied
15313
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
16141
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15314
16142
  # @yieldparam err [StandardError] error object if request failed
15315
16143
  #
15316
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
16144
+ # @return [Google::Apis::ComputeAlpha::Operation]
15317
16145
  #
15318
16146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15319
16147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15320
16148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15321
- def get_network_endpoint_group(project, zone, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15322
- command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}', options)
15323
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
15324
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
16149
+ def patch_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16150
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options)
16151
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
16152
+ command.request_object = firewall_policy_rule_object
16153
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16154
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15325
16155
  command.params['project'] = project unless project.nil?
15326
- command.params['zone'] = zone unless zone.nil?
15327
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
16156
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
16157
+ command.query['priority'] = priority unless priority.nil?
15328
16158
  command.query['fields'] = fields unless fields.nil?
15329
16159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15330
16160
  command.query['userIp'] = user_ip unless user_ip.nil?
15331
16161
  execute_or_queue_command(command, &block)
15332
16162
  end
15333
16163
 
15334
- # Creates a network endpoint group in the specified project using the parameters
15335
- # that are included in the request.
16164
+ # Removes an association for the specified firewall policy.
15336
16165
  # @param [String] project
15337
16166
  # Project ID for this request.
15338
- # @param [String] zone
15339
- # The name of the zone where you want to create the network endpoint group. It
15340
- # should comply with RFC1035.
15341
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
16167
+ # @param [String] firewall_policy
16168
+ # Name of the firewall policy to update.
16169
+ # @param [String] name
16170
+ # Name for the attachment that will be removed.
15342
16171
  # @param [String] request_id
15343
16172
  # An optional request ID to identify requests. Specify a unique request ID so
15344
16173
  # that if you must retry your request, the server will know to ignore the
@@ -15369,14 +16198,13 @@ module Google
15369
16198
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15370
16199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15371
16200
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15372
- def insert_network_endpoint_group(project, zone, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15373
- command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups', options)
15374
- command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
15375
- command.request_object = network_endpoint_group_object
16201
+ def remove_network_firewall_policy_association(project, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16202
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation', options)
15376
16203
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
15377
16204
  command.response_class = Google::Apis::ComputeAlpha::Operation
15378
16205
  command.params['project'] = project unless project.nil?
15379
- command.params['zone'] = zone unless zone.nil?
16206
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
16207
+ command.query['name'] = name unless name.nil?
15380
16208
  command.query['requestId'] = request_id unless request_id.nil?
15381
16209
  command.query['fields'] = fields unless fields.nil?
15382
16210
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15384,50 +16212,13 @@ module Google
15384
16212
  execute_or_queue_command(command, &block)
15385
16213
  end
15386
16214
 
15387
- # Retrieves the list of network endpoint groups that are located in the
15388
- # specified project and zone.
16215
+ # Deletes a rule of the specified priority.
15389
16216
  # @param [String] project
15390
16217
  # Project ID for this request.
15391
- # @param [String] zone
15392
- # The name of the zone where the network endpoint group is located. It should
15393
- # comply with RFC1035.
15394
- # @param [String] filter
15395
- # A filter expression that filters resources listed in the response. The
15396
- # expression must specify the field name, a comparison operator, and the value
15397
- # that you want to use for filtering. The value must be a string, a number, or a
15398
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
15399
- # For example, if you are filtering Compute Engine instances, you can exclude
15400
- # instances named `example-instance` by specifying `name != example-instance`.
15401
- # You can also filter nested fields. For example, you could specify `scheduling.
15402
- # automaticRestart = false` to include instances only if they are not scheduled
15403
- # for automatic restarts. You can use filtering on nested fields to filter based
15404
- # on resource labels.
15405
- # To filter on multiple expressions, provide each separate expression within
15406
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
15407
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
15408
- # expression. However, you can include `AND` and `OR` expressions explicitly.
15409
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
15410
- # Broadwell") AND (scheduling.automaticRestart = true) ```
15411
- # @param [Fixnum] max_results
15412
- # The maximum number of results per page that should be returned. If the number
15413
- # of available results is larger than `maxResults`, Compute Engine returns a `
15414
- # nextPageToken` that can be used to get the next page of results in subsequent
15415
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15416
- # @param [String] order_by
15417
- # Sorts list results by a certain order. By default, results are returned in
15418
- # alphanumerical order based on the resource name.
15419
- # You can also sort results in descending order based on the creation timestamp
15420
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
15421
- # creationTimestamp` field in reverse chronological order (newest result first).
15422
- # Use this to sort resources like operations so that the newest operation is
15423
- # returned first.
15424
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15425
- # @param [String] page_token
15426
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15427
- # by a previous list request to get the next page of results.
15428
- # @param [Boolean] return_partial_success
15429
- # Opt-in for partial success behavior which provides partial results in case of
15430
- # failure. The default value is false and the logic is the same as today.
16218
+ # @param [String] firewall_policy
16219
+ # Name of the firewall policy to update.
16220
+ # @param [Fixnum] priority
16221
+ # The priority of the rule to remove from the firewall policy.
15431
16222
  # @param [String] fields
15432
16223
  # Selector specifying which fields to include in a partial response.
15433
16224
  # @param [String] quota_user
@@ -15439,78 +16230,34 @@ module Google
15439
16230
  # Request-specific options
15440
16231
  #
15441
16232
  # @yield [result, err] Result & error if block supplied
15442
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
16233
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
15443
16234
  # @yieldparam err [StandardError] error object if request failed
15444
16235
  #
15445
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
16236
+ # @return [Google::Apis::ComputeAlpha::Operation]
15446
16237
  #
15447
16238
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15448
16239
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15449
16240
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15450
- def list_network_endpoint_groups(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15451
- command = make_simple_command(:get, '{project}/zones/{zone}/networkEndpointGroups', options)
15452
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
15453
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
16241
+ def remove_network_firewall_policy_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16242
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{firewallPolicy}/removeRule', options)
16243
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
16244
+ command.response_class = Google::Apis::ComputeAlpha::Operation
15454
16245
  command.params['project'] = project unless project.nil?
15455
- command.params['zone'] = zone unless zone.nil?
15456
- command.query['filter'] = filter unless filter.nil?
15457
- command.query['maxResults'] = max_results unless max_results.nil?
15458
- command.query['orderBy'] = order_by unless order_by.nil?
15459
- command.query['pageToken'] = page_token unless page_token.nil?
15460
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16246
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
16247
+ command.query['priority'] = priority unless priority.nil?
15461
16248
  command.query['fields'] = fields unless fields.nil?
15462
16249
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15463
16250
  command.query['userIp'] = user_ip unless user_ip.nil?
15464
16251
  execute_or_queue_command(command, &block)
15465
16252
  end
15466
16253
 
15467
- # Lists the network endpoints in the specified network endpoint group.
16254
+ # Sets the access control policy on the specified resource. Replaces any
16255
+ # existing policy.
15468
16256
  # @param [String] project
15469
16257
  # Project ID for this request.
15470
- # @param [String] zone
15471
- # The name of the zone where the network endpoint group is located. It should
15472
- # comply with RFC1035.
15473
- # @param [String] network_endpoint_group
15474
- # The name of the network endpoint group from which you want to generate a list
15475
- # of included network endpoints. It should comply with RFC1035.
15476
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequest] network_endpoint_groups_list_endpoints_request_object
15477
- # @param [String] filter
15478
- # A filter expression that filters resources listed in the response. The
15479
- # expression must specify the field name, a comparison operator, and the value
15480
- # that you want to use for filtering. The value must be a string, a number, or a
15481
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
15482
- # For example, if you are filtering Compute Engine instances, you can exclude
15483
- # instances named `example-instance` by specifying `name != example-instance`.
15484
- # You can also filter nested fields. For example, you could specify `scheduling.
15485
- # automaticRestart = false` to include instances only if they are not scheduled
15486
- # for automatic restarts. You can use filtering on nested fields to filter based
15487
- # on resource labels.
15488
- # To filter on multiple expressions, provide each separate expression within
15489
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
15490
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
15491
- # expression. However, you can include `AND` and `OR` expressions explicitly.
15492
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
15493
- # Broadwell") AND (scheduling.automaticRestart = true) ```
15494
- # @param [Fixnum] max_results
15495
- # The maximum number of results per page that should be returned. If the number
15496
- # of available results is larger than `maxResults`, Compute Engine returns a `
15497
- # nextPageToken` that can be used to get the next page of results in subsequent
15498
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15499
- # @param [String] order_by
15500
- # Sorts list results by a certain order. By default, results are returned in
15501
- # alphanumerical order based on the resource name.
15502
- # You can also sort results in descending order based on the creation timestamp
15503
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
15504
- # creationTimestamp` field in reverse chronological order (newest result first).
15505
- # Use this to sort resources like operations so that the newest operation is
15506
- # returned first.
15507
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15508
- # @param [String] page_token
15509
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15510
- # by a previous list request to get the next page of results.
15511
- # @param [Boolean] return_partial_success
15512
- # Opt-in for partial success behavior which provides partial results in case of
15513
- # failure. The default value is false and the logic is the same as today.
16258
+ # @param [String] resource
16259
+ # Name or id of the resource for this request.
16260
+ # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
15514
16261
  # @param [String] fields
15515
16262
  # Selector specifying which fields to include in a partial response.
15516
16263
  # @param [String] quota_user
@@ -15522,28 +16269,22 @@ module Google
15522
16269
  # Request-specific options
15523
16270
  #
15524
16271
  # @yield [result, err] Result & error if block supplied
15525
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints] parsed result object
16272
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
15526
16273
  # @yieldparam err [StandardError] error object if request failed
15527
16274
  #
15528
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints]
16275
+ # @return [Google::Apis::ComputeAlpha::Policy]
15529
16276
  #
15530
16277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15531
16278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15532
16279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15533
- def list_network_endpoint_group_network_endpoints(project, zone, network_endpoint_group, network_endpoint_groups_list_endpoints_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15534
- command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options)
15535
- command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListEndpointsRequest::Representation
15536
- command.request_object = network_endpoint_groups_list_endpoints_request_object
15537
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints::Representation
15538
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupsListNetworkEndpoints
16280
+ def set_network_firewall_policy_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16281
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/setIamPolicy', options)
16282
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
16283
+ command.request_object = global_set_policy_request_object
16284
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
16285
+ command.response_class = Google::Apis::ComputeAlpha::Policy
15539
16286
  command.params['project'] = project unless project.nil?
15540
- command.params['zone'] = zone unless zone.nil?
15541
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
15542
- command.query['filter'] = filter unless filter.nil?
15543
- command.query['maxResults'] = max_results unless max_results.nil?
15544
- command.query['orderBy'] = order_by unless order_by.nil?
15545
- command.query['pageToken'] = page_token unless page_token.nil?
15546
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16287
+ command.params['resource'] = resource unless resource.nil?
15547
16288
  command.query['fields'] = fields unless fields.nil?
15548
16289
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15549
16290
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -15553,8 +16294,6 @@ module Google
15553
16294
  # Returns permissions that a caller has on the specified resource.
15554
16295
  # @param [String] project
15555
16296
  # Project ID for this request.
15556
- # @param [String] zone
15557
- # The name of the zone for this request.
15558
16297
  # @param [String] resource
15559
16298
  # Name or id of the resource for this request.
15560
16299
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -15577,14 +16316,13 @@ module Google
15577
16316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15578
16317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15579
16318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15580
- def test_network_endpoint_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15581
- command = make_simple_command(:post, '{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions', options)
16319
+ def test_network_firewall_policy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16320
+ command = make_simple_command(:post, '{project}/global/firewallPolicies/{resource}/testIamPermissions', options)
15582
16321
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
15583
16322
  command.request_object = test_permissions_request_object
15584
16323
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
15585
16324
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
15586
16325
  command.params['project'] = project unless project.nil?
15587
- command.params['zone'] = zone unless zone.nil?
15588
16326
  command.params['resource'] = resource unless resource.nil?
15589
16327
  command.query['fields'] = fields unless fields.nil?
15590
16328
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -19156,6 +19894,9 @@ module Google
19156
19894
  # @param [String] page_token
19157
19895
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
19158
19896
  # by a previous list request to get the next page of results.
19897
+ # @param [Boolean] return_partial_success
19898
+ # Opt-in for partial success behavior which provides partial results in case of
19899
+ # failure. The default value is false and the logic is the same as today.
19159
19900
  # @param [String] fields
19160
19901
  # Selector specifying which fields to include in a partial response.
19161
19902
  # @param [String] quota_user
@@ -19175,7 +19916,7 @@ module Google
19175
19916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19176
19917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19177
19918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19178
- def get_project_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19919
+ def get_project_xpn_resources(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19179
19920
  command = make_simple_command(:get, '{project}/getXpnResources', options)
19180
19921
  command.response_representation = Google::Apis::ComputeAlpha::ProjectsGetXpnResources::Representation
19181
19922
  command.response_class = Google::Apis::ComputeAlpha::ProjectsGetXpnResources
@@ -19184,6 +19925,7 @@ module Google
19184
19925
  command.query['maxResults'] = max_results unless max_results.nil?
19185
19926
  command.query['orderBy'] = order_by unless order_by.nil?
19186
19927
  command.query['pageToken'] = page_token unless page_token.nil?
19928
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19187
19929
  command.query['fields'] = fields unless fields.nil?
19188
19930
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19189
19931
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -19228,6 +19970,9 @@ module Google
19228
19970
  # @param [String] page_token
19229
19971
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
19230
19972
  # by a previous list request to get the next page of results.
19973
+ # @param [Boolean] return_partial_success
19974
+ # Opt-in for partial success behavior which provides partial results in case of
19975
+ # failure. The default value is false and the logic is the same as today.
19231
19976
  # @param [String] fields
19232
19977
  # Selector specifying which fields to include in a partial response.
19233
19978
  # @param [String] quota_user
@@ -19247,7 +19992,7 @@ module Google
19247
19992
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19248
19993
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19249
19994
  # @raise [Google::Apis::AuthorizationError] Authorization is required
19250
- def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19995
+ def list_project_xpn_hosts(project, projects_list_xpn_hosts_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19251
19996
  command = make_simple_command(:post, '{project}/listXpnHosts', options)
19252
19997
  command.request_representation = Google::Apis::ComputeAlpha::ProjectsListXpnHostsRequest::Representation
19253
19998
  command.request_object = projects_list_xpn_hosts_request_object
@@ -19258,6 +20003,7 @@ module Google
19258
20003
  command.query['maxResults'] = max_results unless max_results.nil?
19259
20004
  command.query['orderBy'] = order_by unless order_by.nil?
19260
20005
  command.query['pageToken'] = page_token unless page_token.nil?
20006
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19261
20007
  command.query['fields'] = fields unless fields.nil?
19262
20008
  command.query['quotaUser'] = quota_user unless quota_user.nil?
19263
20009
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -23801,6 +24547,9 @@ module Google
23801
24547
  # @param [String] page_token
23802
24548
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
23803
24549
  # by a previous list request to get the next page of results.
24550
+ # @param [Boolean] return_partial_success
24551
+ # Opt-in for partial success behavior which provides partial results in case of
24552
+ # failure. The default value is false and the logic is the same as today.
23804
24553
  # @param [String] fields
23805
24554
  # Selector specifying which fields to include in a partial response.
23806
24555
  # @param [String] quota_user
@@ -23820,7 +24569,7 @@ module Google
23820
24569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23821
24570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23822
24571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
23823
- def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24572
+ def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23824
24573
  command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
23825
24574
  command.response_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse::Representation
23826
24575
  command.response_class = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersListInstancesResponse
@@ -23831,6 +24580,7 @@ module Google
23831
24580
  command.query['maxResults'] = max_results unless max_results.nil?
23832
24581
  command.query['orderBy'] = order_by unless order_by.nil?
23833
24582
  command.query['pageToken'] = page_token unless page_token.nil?
24583
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
23834
24584
  command.query['fields'] = fields unless fields.nil?
23835
24585
  command.query['quotaUser'] = quota_user unless quota_user.nil?
23836
24586
  command.query['userIp'] = user_ip unless user_ip.nil?