google-apis-monitoring_v1 0.9.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/monitoring_v1/classes.rb +302 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v1/representations.rb +129 -0
- data/lib/google/apis/monitoring_v1/service.rb +173 -4
- data/lib/google/apis/monitoring_v1.rb +3 -2
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9a1a4515110e24ba662cb294a6de46ae2a93eca9c5f5fd45a1302807c6393c57
         | 
| 4 | 
            +
              data.tar.gz: bdacc02fb90a7cd526f6f35df52ee456d384c490a6215bc81ba525c897921a06
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e58040b22e9fdb7ac45d2b0688163097d4d1bdb2ca6d62f942800f821b134ae0488e4491806f98ec6865f91e226ed83742ef46aeaab967b50f2d7e0386e78b15
         | 
| 7 | 
            +
              data.tar.gz: 046ab564f64e1dbece61e45c325c3671ffc231fb147c86ea54e3006ca414f1a3fdffae67c8d2df1ed435c61865e25a0fc4178aece2bbb9f64771ddf451ca612b
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,21 @@ | |
| 1 1 | 
             
            # Release history for google-apis-monitoring_v1
         | 
| 2 2 |  | 
| 3 | 
            +
            ### v0.13.0 (2021-09-24)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Regenerated from discovery document revision 20210922
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ### v0.12.0 (2021-09-01)
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            * Regenerated from discovery document revision 20210809
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            ### v0.11.0 (2021-07-30)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            * Regenerated from discovery document revision 20210727
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            ### v0.10.0 (2021-07-16)
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            * Regenerated from discovery document revision 20210712
         | 
| 18 | 
            +
             | 
| 3 19 | 
             
            ### v0.9.0 (2021-07-02)
         | 
| 4 20 |  | 
| 5 21 | 
             
            * Regenerated from discovery document revision 20210625
         | 
| @@ -319,6 +319,11 @@ module Google | |
| 319 319 | 
             
                    # @return [String]
         | 
| 320 320 | 
             
                    attr_accessor :plot_type
         | 
| 321 321 |  | 
| 322 | 
            +
                    # Optional. The target axis to use for plotting the metric.
         | 
| 323 | 
            +
                    # Corresponds to the JSON property `targetAxis`
         | 
| 324 | 
            +
                    # @return [String]
         | 
| 325 | 
            +
                    attr_accessor :target_axis
         | 
| 326 | 
            +
                  
         | 
| 322 327 | 
             
                    # TimeSeriesQuery collects the set of supported methods for querying time series
         | 
| 323 328 | 
             
                    # data from the Stackdriver metrics API.
         | 
| 324 329 | 
             
                    # Corresponds to the JSON property `timeSeriesQuery`
         | 
| @@ -334,6 +339,7 @@ module Google | |
| 334 339 | 
             
                      @legend_template = args[:legend_template] if args.key?(:legend_template)
         | 
| 335 340 | 
             
                      @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
         | 
| 336 341 | 
             
                      @plot_type = args[:plot_type] if args.key?(:plot_type)
         | 
| 342 | 
            +
                      @target_axis = args[:target_axis] if args.key?(:target_axis)
         | 
| 337 343 | 
             
                      @time_series_query = args[:time_series_query] if args.key?(:time_series_query)
         | 
| 338 344 | 
             
                    end
         | 
| 339 345 | 
             
                  end
         | 
| @@ -544,6 +550,98 @@ module Google | |
| 544 550 | 
             
                    end
         | 
| 545 551 | 
             
                  end
         | 
| 546 552 |  | 
| 553 | 
            +
                  # Response for the ListMetricsScopesByMonitoredProject method.
         | 
| 554 | 
            +
                  class ListMetricsScopesByMonitoredProjectResponse
         | 
| 555 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 556 | 
            +
                  
         | 
| 557 | 
            +
                    # A set of all metrics scopes that the specified monitored project has been
         | 
| 558 | 
            +
                    # added to.
         | 
| 559 | 
            +
                    # Corresponds to the JSON property `metricsScopes`
         | 
| 560 | 
            +
                    # @return [Array<Google::Apis::MonitoringV1::MetricsScope>]
         | 
| 561 | 
            +
                    attr_accessor :metrics_scopes
         | 
| 562 | 
            +
                  
         | 
| 563 | 
            +
                    def initialize(**args)
         | 
| 564 | 
            +
                       update!(**args)
         | 
| 565 | 
            +
                    end
         | 
| 566 | 
            +
                  
         | 
| 567 | 
            +
                    # Update properties of this object
         | 
| 568 | 
            +
                    def update!(**args)
         | 
| 569 | 
            +
                      @metrics_scopes = args[:metrics_scopes] if args.key?(:metrics_scopes)
         | 
| 570 | 
            +
                    end
         | 
| 571 | 
            +
                  end
         | 
| 572 | 
            +
                  
         | 
| 573 | 
            +
                  # Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
         | 
| 574 | 
            +
                  # concept-scope) in Cloud Monitoring, which specifies one or more Google
         | 
| 575 | 
            +
                  # projects and zero or more AWS accounts to monitor together.
         | 
| 576 | 
            +
                  class MetricsScope
         | 
| 577 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 578 | 
            +
                  
         | 
| 579 | 
            +
                    # Output only. The time when this Metrics Scope was created.
         | 
| 580 | 
            +
                    # Corresponds to the JSON property `createTime`
         | 
| 581 | 
            +
                    # @return [String]
         | 
| 582 | 
            +
                    attr_accessor :create_time
         | 
| 583 | 
            +
                  
         | 
| 584 | 
            +
                    # Output only. The list of projects monitored by this Metrics Scope.
         | 
| 585 | 
            +
                    # Corresponds to the JSON property `monitoredProjects`
         | 
| 586 | 
            +
                    # @return [Array<Google::Apis::MonitoringV1::MonitoredProject>]
         | 
| 587 | 
            +
                    attr_accessor :monitored_projects
         | 
| 588 | 
            +
                  
         | 
| 589 | 
            +
                    # Immutable. The resource name of the Monitoring Metrics Scope. On input, the
         | 
| 590 | 
            +
                    # resource name can be specified with the scoping project ID or number. On
         | 
| 591 | 
            +
                    # output, the resource name is specified with the scoping project number.
         | 
| 592 | 
            +
                    # Example: locations/global/metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
         | 
| 593 | 
            +
                    # Corresponds to the JSON property `name`
         | 
| 594 | 
            +
                    # @return [String]
         | 
| 595 | 
            +
                    attr_accessor :name
         | 
| 596 | 
            +
                  
         | 
| 597 | 
            +
                    # Output only. The time when this Metrics Scope record was last updated.
         | 
| 598 | 
            +
                    # Corresponds to the JSON property `updateTime`
         | 
| 599 | 
            +
                    # @return [String]
         | 
| 600 | 
            +
                    attr_accessor :update_time
         | 
| 601 | 
            +
                  
         | 
| 602 | 
            +
                    def initialize(**args)
         | 
| 603 | 
            +
                       update!(**args)
         | 
| 604 | 
            +
                    end
         | 
| 605 | 
            +
                  
         | 
| 606 | 
            +
                    # Update properties of this object
         | 
| 607 | 
            +
                    def update!(**args)
         | 
| 608 | 
            +
                      @create_time = args[:create_time] if args.key?(:create_time)
         | 
| 609 | 
            +
                      @monitored_projects = args[:monitored_projects] if args.key?(:monitored_projects)
         | 
| 610 | 
            +
                      @name = args[:name] if args.key?(:name)
         | 
| 611 | 
            +
                      @update_time = args[:update_time] if args.key?(:update_time)
         | 
| 612 | 
            +
                    end
         | 
| 613 | 
            +
                  end
         | 
| 614 | 
            +
                  
         | 
| 615 | 
            +
                  # A project being monitored (https://cloud.google.com/monitoring/settings/
         | 
| 616 | 
            +
                  # multiple-projects#create-multi) by a Metrics Scope.
         | 
| 617 | 
            +
                  class MonitoredProject
         | 
| 618 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 619 | 
            +
                  
         | 
| 620 | 
            +
                    # Output only. The time when this MonitoredProject was created.
         | 
| 621 | 
            +
                    # Corresponds to the JSON property `createTime`
         | 
| 622 | 
            +
                    # @return [String]
         | 
| 623 | 
            +
                    attr_accessor :create_time
         | 
| 624 | 
            +
                  
         | 
| 625 | 
            +
                    # Immutable. The resource name of the MonitoredProject. On input, the resource
         | 
| 626 | 
            +
                    # name includes the scoping project ID and monitored project ID. On output, it
         | 
| 627 | 
            +
                    # contains the equivalent project numbers. Example: locations/global/
         | 
| 628 | 
            +
                    # metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
         | 
| 629 | 
            +
                    # MONITORED_PROJECT_ID_OR_NUMBER`
         | 
| 630 | 
            +
                    # Corresponds to the JSON property `name`
         | 
| 631 | 
            +
                    # @return [String]
         | 
| 632 | 
            +
                    attr_accessor :name
         | 
| 633 | 
            +
                  
         | 
| 634 | 
            +
                    def initialize(**args)
         | 
| 635 | 
            +
                       update!(**args)
         | 
| 636 | 
            +
                    end
         | 
| 637 | 
            +
                  
         | 
| 638 | 
            +
                    # Update properties of this object
         | 
| 639 | 
            +
                    def update!(**args)
         | 
| 640 | 
            +
                      @create_time = args[:create_time] if args.key?(:create_time)
         | 
| 641 | 
            +
                      @name = args[:name] if args.key?(:name)
         | 
| 642 | 
            +
                    end
         | 
| 643 | 
            +
                  end
         | 
| 644 | 
            +
                  
         | 
| 547 645 | 
             
                  # A mosaic layout divides the available space into a grid of blocks, and
         | 
| 548 646 | 
             
                  # overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid
         | 
| 549 647 | 
             
                  # blocks and can be placed at arbitrary locations in the grid.
         | 
| @@ -572,6 +670,68 @@ module Google | |
| 572 670 | 
             
                    end
         | 
| 573 671 | 
             
                  end
         | 
| 574 672 |  | 
| 673 | 
            +
                  # This resource represents a long-running operation that is the result of a
         | 
| 674 | 
            +
                  # network API call.
         | 
| 675 | 
            +
                  class Operation
         | 
| 676 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 677 | 
            +
                  
         | 
| 678 | 
            +
                    # If the value is false, it means the operation is still in progress. If true,
         | 
| 679 | 
            +
                    # the operation is completed, and either error or response is available.
         | 
| 680 | 
            +
                    # Corresponds to the JSON property `done`
         | 
| 681 | 
            +
                    # @return [Boolean]
         | 
| 682 | 
            +
                    attr_accessor :done
         | 
| 683 | 
            +
                    alias_method :done?, :done
         | 
| 684 | 
            +
                  
         | 
| 685 | 
            +
                    # The Status type defines a logical error model that is suitable for different
         | 
| 686 | 
            +
                    # programming environments, including REST APIs and RPC APIs. It is used by gRPC
         | 
| 687 | 
            +
                    # (https://github.com/grpc). Each Status message contains three pieces of data:
         | 
| 688 | 
            +
                    # error code, error message, and error details.You can find out more about this
         | 
| 689 | 
            +
                    # error model and how to work with it in the API Design Guide (https://cloud.
         | 
| 690 | 
            +
                    # google.com/apis/design/errors).
         | 
| 691 | 
            +
                    # Corresponds to the JSON property `error`
         | 
| 692 | 
            +
                    # @return [Google::Apis::MonitoringV1::Status]
         | 
| 693 | 
            +
                    attr_accessor :error
         | 
| 694 | 
            +
                  
         | 
| 695 | 
            +
                    # Service-specific metadata associated with the operation. It typically contains
         | 
| 696 | 
            +
                    # progress information and common metadata such as create time. Some services
         | 
| 697 | 
            +
                    # might not provide such metadata. Any method that returns a long-running
         | 
| 698 | 
            +
                    # operation should document the metadata type, if any.
         | 
| 699 | 
            +
                    # Corresponds to the JSON property `metadata`
         | 
| 700 | 
            +
                    # @return [Hash<String,Object>]
         | 
| 701 | 
            +
                    attr_accessor :metadata
         | 
| 702 | 
            +
                  
         | 
| 703 | 
            +
                    # The server-assigned name, which is only unique within the same service that
         | 
| 704 | 
            +
                    # originally returns it. If you use the default HTTP mapping, the name should be
         | 
| 705 | 
            +
                    # a resource name ending with operations/`unique_id`.
         | 
| 706 | 
            +
                    # Corresponds to the JSON property `name`
         | 
| 707 | 
            +
                    # @return [String]
         | 
| 708 | 
            +
                    attr_accessor :name
         | 
| 709 | 
            +
                  
         | 
| 710 | 
            +
                    # The normal response of the operation in case of success. If the original
         | 
| 711 | 
            +
                    # method returns no data on success, such as Delete, the response is google.
         | 
| 712 | 
            +
                    # protobuf.Empty. If the original method is standard Get/Create/Update, the
         | 
| 713 | 
            +
                    # response should be the resource. For other methods, the response should have
         | 
| 714 | 
            +
                    # the type XxxResponse, where Xxx is the original method name. For example, if
         | 
| 715 | 
            +
                    # the original method name is TakeSnapshot(), the inferred response type is
         | 
| 716 | 
            +
                    # TakeSnapshotResponse.
         | 
| 717 | 
            +
                    # Corresponds to the JSON property `response`
         | 
| 718 | 
            +
                    # @return [Hash<String,Object>]
         | 
| 719 | 
            +
                    attr_accessor :response
         | 
| 720 | 
            +
                  
         | 
| 721 | 
            +
                    def initialize(**args)
         | 
| 722 | 
            +
                       update!(**args)
         | 
| 723 | 
            +
                    end
         | 
| 724 | 
            +
                  
         | 
| 725 | 
            +
                    # Update properties of this object
         | 
| 726 | 
            +
                    def update!(**args)
         | 
| 727 | 
            +
                      @done = args[:done] if args.key?(:done)
         | 
| 728 | 
            +
                      @error = args[:error] if args.key?(:error)
         | 
| 729 | 
            +
                      @metadata = args[:metadata] if args.key?(:metadata)
         | 
| 730 | 
            +
                      @name = args[:name] if args.key?(:name)
         | 
| 731 | 
            +
                      @response = args[:response] if args.key?(:response)
         | 
| 732 | 
            +
                    end
         | 
| 733 | 
            +
                  end
         | 
| 734 | 
            +
                  
         | 
| 575 735 | 
             
                  # Contains metadata for longrunning operation for the edit Metrics Scope
         | 
| 576 736 | 
             
                  # endpoints.
         | 
| 577 737 | 
             
                  class OperationMetadata
         | 
| @@ -932,6 +1092,110 @@ module Google | |
| 932 1092 | 
             
                    end
         | 
| 933 1093 | 
             
                  end
         | 
| 934 1094 |  | 
| 1095 | 
            +
                  # The Status type defines a logical error model that is suitable for different
         | 
| 1096 | 
            +
                  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
         | 
| 1097 | 
            +
                  # (https://github.com/grpc). Each Status message contains three pieces of data:
         | 
| 1098 | 
            +
                  # error code, error message, and error details.You can find out more about this
         | 
| 1099 | 
            +
                  # error model and how to work with it in the API Design Guide (https://cloud.
         | 
| 1100 | 
            +
                  # google.com/apis/design/errors).
         | 
| 1101 | 
            +
                  class Status
         | 
| 1102 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 1103 | 
            +
                  
         | 
| 1104 | 
            +
                    # The status code, which should be an enum value of google.rpc.Code.
         | 
| 1105 | 
            +
                    # Corresponds to the JSON property `code`
         | 
| 1106 | 
            +
                    # @return [Fixnum]
         | 
| 1107 | 
            +
                    attr_accessor :code
         | 
| 1108 | 
            +
                  
         | 
| 1109 | 
            +
                    # A list of messages that carry the error details. There is a common set of
         | 
| 1110 | 
            +
                    # message types for APIs to use.
         | 
| 1111 | 
            +
                    # Corresponds to the JSON property `details`
         | 
| 1112 | 
            +
                    # @return [Array<Hash<String,Object>>]
         | 
| 1113 | 
            +
                    attr_accessor :details
         | 
| 1114 | 
            +
                  
         | 
| 1115 | 
            +
                    # A developer-facing error message, which should be in English. Any user-facing
         | 
| 1116 | 
            +
                    # error message should be localized and sent in the google.rpc.Status.details
         | 
| 1117 | 
            +
                    # field, or localized by the client.
         | 
| 1118 | 
            +
                    # Corresponds to the JSON property `message`
         | 
| 1119 | 
            +
                    # @return [String]
         | 
| 1120 | 
            +
                    attr_accessor :message
         | 
| 1121 | 
            +
                  
         | 
| 1122 | 
            +
                    def initialize(**args)
         | 
| 1123 | 
            +
                       update!(**args)
         | 
| 1124 | 
            +
                    end
         | 
| 1125 | 
            +
                  
         | 
| 1126 | 
            +
                    # Update properties of this object
         | 
| 1127 | 
            +
                    def update!(**args)
         | 
| 1128 | 
            +
                      @code = args[:code] if args.key?(:code)
         | 
| 1129 | 
            +
                      @details = args[:details] if args.key?(:details)
         | 
| 1130 | 
            +
                      @message = args[:message] if args.key?(:message)
         | 
| 1131 | 
            +
                    end
         | 
| 1132 | 
            +
                  end
         | 
| 1133 | 
            +
                  
         | 
| 1134 | 
            +
                  # Groups a time series query definition with table options.
         | 
| 1135 | 
            +
                  class TableDataSet
         | 
| 1136 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 1137 | 
            +
                  
         | 
| 1138 | 
            +
                    # Optional. The lower bound on data point frequency for this data set,
         | 
| 1139 | 
            +
                    # implemented by specifying the minimum alignment period to use in a time series
         | 
| 1140 | 
            +
                    # query For example, if the data is published once every 10 minutes, the
         | 
| 1141 | 
            +
                    # min_alignment_period should be at least 10 minutes. It would not make sense to
         | 
| 1142 | 
            +
                    # fetch and align data at one minute intervals.
         | 
| 1143 | 
            +
                    # Corresponds to the JSON property `minAlignmentPeriod`
         | 
| 1144 | 
            +
                    # @return [String]
         | 
| 1145 | 
            +
                    attr_accessor :min_alignment_period
         | 
| 1146 | 
            +
                  
         | 
| 1147 | 
            +
                    # Table display options that can be reused.
         | 
| 1148 | 
            +
                    # Corresponds to the JSON property `tableDisplayOptions`
         | 
| 1149 | 
            +
                    # @return [Google::Apis::MonitoringV1::TableDisplayOptions]
         | 
| 1150 | 
            +
                    attr_accessor :table_display_options
         | 
| 1151 | 
            +
                  
         | 
| 1152 | 
            +
                    # Optional. A template string for naming TimeSeries in the resulting data set.
         | 
| 1153 | 
            +
                    # This should be a string with interpolations of the form $`label_name`, which
         | 
| 1154 | 
            +
                    # will resolve to the label's value i.e. "$`resource.labels.project_id`."
         | 
| 1155 | 
            +
                    # Corresponds to the JSON property `tableTemplate`
         | 
| 1156 | 
            +
                    # @return [String]
         | 
| 1157 | 
            +
                    attr_accessor :table_template
         | 
| 1158 | 
            +
                  
         | 
| 1159 | 
            +
                    # TimeSeriesQuery collects the set of supported methods for querying time series
         | 
| 1160 | 
            +
                    # data from the Stackdriver metrics API.
         | 
| 1161 | 
            +
                    # Corresponds to the JSON property `timeSeriesQuery`
         | 
| 1162 | 
            +
                    # @return [Google::Apis::MonitoringV1::TimeSeriesQuery]
         | 
| 1163 | 
            +
                    attr_accessor :time_series_query
         | 
| 1164 | 
            +
                  
         | 
| 1165 | 
            +
                    def initialize(**args)
         | 
| 1166 | 
            +
                       update!(**args)
         | 
| 1167 | 
            +
                    end
         | 
| 1168 | 
            +
                  
         | 
| 1169 | 
            +
                    # Update properties of this object
         | 
| 1170 | 
            +
                    def update!(**args)
         | 
| 1171 | 
            +
                      @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
         | 
| 1172 | 
            +
                      @table_display_options = args[:table_display_options] if args.key?(:table_display_options)
         | 
| 1173 | 
            +
                      @table_template = args[:table_template] if args.key?(:table_template)
         | 
| 1174 | 
            +
                      @time_series_query = args[:time_series_query] if args.key?(:time_series_query)
         | 
| 1175 | 
            +
                    end
         | 
| 1176 | 
            +
                  end
         | 
| 1177 | 
            +
                  
         | 
| 1178 | 
            +
                  # Table display options that can be reused.
         | 
| 1179 | 
            +
                  class TableDisplayOptions
         | 
| 1180 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 1181 | 
            +
                  
         | 
| 1182 | 
            +
                    # Optional. Columns to display in the table. Leave empty to display all
         | 
| 1183 | 
            +
                    # available columns. Note: This field is for future features and is not
         | 
| 1184 | 
            +
                    # currently used.
         | 
| 1185 | 
            +
                    # Corresponds to the JSON property `shownColumns`
         | 
| 1186 | 
            +
                    # @return [Array<String>]
         | 
| 1187 | 
            +
                    attr_accessor :shown_columns
         | 
| 1188 | 
            +
                  
         | 
| 1189 | 
            +
                    def initialize(**args)
         | 
| 1190 | 
            +
                       update!(**args)
         | 
| 1191 | 
            +
                    end
         | 
| 1192 | 
            +
                  
         | 
| 1193 | 
            +
                    # Update properties of this object
         | 
| 1194 | 
            +
                    def update!(**args)
         | 
| 1195 | 
            +
                      @shown_columns = args[:shown_columns] if args.key?(:shown_columns)
         | 
| 1196 | 
            +
                    end
         | 
| 1197 | 
            +
                  end
         | 
| 1198 | 
            +
                  
         | 
| 935 1199 | 
             
                  # A widget that displays textual content.
         | 
| 936 1200 | 
             
                  class Text
         | 
| 937 1201 | 
             
                    include Google::Apis::Core::Hashable
         | 
| @@ -976,6 +1240,12 @@ module Google | |
| 976 1240 | 
             
                    # @return [String]
         | 
| 977 1241 | 
             
                    attr_accessor :label
         | 
| 978 1242 |  | 
| 1243 | 
            +
                    # The target axis to use for plotting the threshold. Target axis is not allowed
         | 
| 1244 | 
            +
                    # in a Scorecard.
         | 
| 1245 | 
            +
                    # Corresponds to the JSON property `targetAxis`
         | 
| 1246 | 
            +
                    # @return [String]
         | 
| 1247 | 
            +
                    attr_accessor :target_axis
         | 
| 1248 | 
            +
                  
         | 
| 979 1249 | 
             
                    # The value of the threshold. The value should be defined in the native scale of
         | 
| 980 1250 | 
             
                    # the metric.
         | 
| 981 1251 | 
             
                    # Corresponds to the JSON property `value`
         | 
| @@ -991,6 +1261,7 @@ module Google | |
| 991 1261 | 
             
                      @color = args[:color] if args.key?(:color)
         | 
| 992 1262 | 
             
                      @direction = args[:direction] if args.key?(:direction)
         | 
| 993 1263 | 
             
                      @label = args[:label] if args.key?(:label)
         | 
| 1264 | 
            +
                      @target_axis = args[:target_axis] if args.key?(:target_axis)
         | 
| 994 1265 | 
             
                      @value = args[:value] if args.key?(:value)
         | 
| 995 1266 | 
             
                    end
         | 
| 996 1267 | 
             
                  end
         | 
| @@ -1257,6 +1528,25 @@ module Google | |
| 1257 1528 | 
             
                    end
         | 
| 1258 1529 | 
             
                  end
         | 
| 1259 1530 |  | 
| 1531 | 
            +
                  # A table that displays time series data.
         | 
| 1532 | 
            +
                  class TimeSeriesTable
         | 
| 1533 | 
            +
                    include Google::Apis::Core::Hashable
         | 
| 1534 | 
            +
                  
         | 
| 1535 | 
            +
                    # Required. The data displayed in this table.
         | 
| 1536 | 
            +
                    # Corresponds to the JSON property `dataSets`
         | 
| 1537 | 
            +
                    # @return [Array<Google::Apis::MonitoringV1::TableDataSet>]
         | 
| 1538 | 
            +
                    attr_accessor :data_sets
         | 
| 1539 | 
            +
                  
         | 
| 1540 | 
            +
                    def initialize(**args)
         | 
| 1541 | 
            +
                       update!(**args)
         | 
| 1542 | 
            +
                    end
         | 
| 1543 | 
            +
                  
         | 
| 1544 | 
            +
                    # Update properties of this object
         | 
| 1545 | 
            +
                    def update!(**args)
         | 
| 1546 | 
            +
                      @data_sets = args[:data_sets] if args.key?(:data_sets)
         | 
| 1547 | 
            +
                    end
         | 
| 1548 | 
            +
                  end
         | 
| 1549 | 
            +
                  
         | 
| 1260 1550 | 
             
                  # A protocol buffer message type.
         | 
| 1261 1551 | 
             
                  class Type
         | 
| 1262 1552 | 
             
                    include Google::Apis::Core::Hashable
         | 
| @@ -1337,6 +1627,11 @@ module Google | |
| 1337 1627 | 
             
                    # @return [Google::Apis::MonitoringV1::Text]
         | 
| 1338 1628 | 
             
                    attr_accessor :text
         | 
| 1339 1629 |  | 
| 1630 | 
            +
                    # A table that displays time series data.
         | 
| 1631 | 
            +
                    # Corresponds to the JSON property `timeSeriesTable`
         | 
| 1632 | 
            +
                    # @return [Google::Apis::MonitoringV1::TimeSeriesTable]
         | 
| 1633 | 
            +
                    attr_accessor :time_series_table
         | 
| 1634 | 
            +
                  
         | 
| 1340 1635 | 
             
                    # Optional. The title of the widget.
         | 
| 1341 1636 | 
             
                    # Corresponds to the JSON property `title`
         | 
| 1342 1637 | 
             
                    # @return [String]
         | 
| @@ -1357,6 +1652,7 @@ module Google | |
| 1357 1652 | 
             
                      @blank = args[:blank] if args.key?(:blank)
         | 
| 1358 1653 | 
             
                      @scorecard = args[:scorecard] if args.key?(:scorecard)
         | 
| 1359 1654 | 
             
                      @text = args[:text] if args.key?(:text)
         | 
| 1655 | 
            +
                      @time_series_table = args[:time_series_table] if args.key?(:time_series_table)
         | 
| 1360 1656 | 
             
                      @title = args[:title] if args.key?(:title)
         | 
| 1361 1657 | 
             
                      @xy_chart = args[:xy_chart] if args.key?(:xy_chart)
         | 
| 1362 1658 | 
             
                    end
         | 
| @@ -1394,6 +1690,11 @@ module Google | |
| 1394 1690 | 
             
                    # @return [Google::Apis::MonitoringV1::Axis]
         | 
| 1395 1691 | 
             
                    attr_accessor :x_axis
         | 
| 1396 1692 |  | 
| 1693 | 
            +
                    # A chart axis.
         | 
| 1694 | 
            +
                    # Corresponds to the JSON property `y2Axis`
         | 
| 1695 | 
            +
                    # @return [Google::Apis::MonitoringV1::Axis]
         | 
| 1696 | 
            +
                    attr_accessor :y2_axis
         | 
| 1697 | 
            +
                  
         | 
| 1397 1698 | 
             
                    # A chart axis.
         | 
| 1398 1699 | 
             
                    # Corresponds to the JSON property `yAxis`
         | 
| 1399 1700 | 
             
                    # @return [Google::Apis::MonitoringV1::Axis]
         | 
| @@ -1410,6 +1711,7 @@ module Google | |
| 1410 1711 | 
             
                      @thresholds = args[:thresholds] if args.key?(:thresholds)
         | 
| 1411 1712 | 
             
                      @timeshift_duration = args[:timeshift_duration] if args.key?(:timeshift_duration)
         | 
| 1412 1713 | 
             
                      @x_axis = args[:x_axis] if args.key?(:x_axis)
         | 
| 1714 | 
            +
                      @y2_axis = args[:y2_axis] if args.key?(:y2_axis)
         | 
| 1413 1715 | 
             
                      @y_axis = args[:y_axis] if args.key?(:y_axis)
         | 
| 1414 1716 | 
             
                    end
         | 
| 1415 1717 | 
             
                  end
         | 
| @@ -16,13 +16,13 @@ module Google | |
| 16 16 | 
             
              module Apis
         | 
| 17 17 | 
             
                module MonitoringV1
         | 
| 18 18 | 
             
                  # Version of the google-apis-monitoring_v1 gem
         | 
| 19 | 
            -
                  GEM_VERSION = "0. | 
| 19 | 
            +
                  GEM_VERSION = "0.13.0"
         | 
| 20 20 |  | 
| 21 21 | 
             
                  # Version of the code generator used to generate this client
         | 
| 22 22 | 
             
                  GENERATOR_VERSION = "0.4.0"
         | 
| 23 23 |  | 
| 24 24 | 
             
                  # Revision of the discovery document this client was generated from
         | 
| 25 | 
            -
                  REVISION = " | 
| 25 | 
            +
                  REVISION = "20210922"
         | 
| 26 26 | 
             
                end
         | 
| 27 27 | 
             
              end
         | 
| 28 28 | 
             
            end
         | 
| @@ -106,12 +106,36 @@ module Google | |
| 106 106 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 107 107 | 
             
                  end
         | 
| 108 108 |  | 
| 109 | 
            +
                  class ListMetricsScopesByMonitoredProjectResponse
         | 
| 110 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 111 | 
            +
                  
         | 
| 112 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 113 | 
            +
                  end
         | 
| 114 | 
            +
                  
         | 
| 115 | 
            +
                  class MetricsScope
         | 
| 116 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 117 | 
            +
                  
         | 
| 118 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 119 | 
            +
                  end
         | 
| 120 | 
            +
                  
         | 
| 121 | 
            +
                  class MonitoredProject
         | 
| 122 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 123 | 
            +
                  
         | 
| 124 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 125 | 
            +
                  end
         | 
| 126 | 
            +
                  
         | 
| 109 127 | 
             
                  class MosaicLayout
         | 
| 110 128 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 111 129 |  | 
| 112 130 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 113 131 | 
             
                  end
         | 
| 114 132 |  | 
| 133 | 
            +
                  class Operation
         | 
| 134 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 135 | 
            +
                  
         | 
| 136 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 137 | 
            +
                  end
         | 
| 138 | 
            +
                  
         | 
| 115 139 | 
             
                  class OperationMetadata
         | 
| 116 140 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 117 141 |  | 
| @@ -178,6 +202,24 @@ module Google | |
| 178 202 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 179 203 | 
             
                  end
         | 
| 180 204 |  | 
| 205 | 
            +
                  class Status
         | 
| 206 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 207 | 
            +
                  
         | 
| 208 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 209 | 
            +
                  end
         | 
| 210 | 
            +
                  
         | 
| 211 | 
            +
                  class TableDataSet
         | 
| 212 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 213 | 
            +
                  
         | 
| 214 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 215 | 
            +
                  end
         | 
| 216 | 
            +
                  
         | 
| 217 | 
            +
                  class TableDisplayOptions
         | 
| 218 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 219 | 
            +
                  
         | 
| 220 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 221 | 
            +
                  end
         | 
| 222 | 
            +
                  
         | 
| 181 223 | 
             
                  class Text
         | 
| 182 224 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 183 225 |  | 
| @@ -214,6 +256,12 @@ module Google | |
| 214 256 | 
             
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 215 257 | 
             
                  end
         | 
| 216 258 |  | 
| 259 | 
            +
                  class TimeSeriesTable
         | 
| 260 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 261 | 
            +
                  
         | 
| 262 | 
            +
                    include Google::Apis::Core::JsonObjectSupport
         | 
| 263 | 
            +
                  end
         | 
| 264 | 
            +
                  
         | 
| 217 265 | 
             
                  class Type
         | 
| 218 266 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation; end
         | 
| 219 267 |  | 
| @@ -304,6 +352,7 @@ module Google | |
| 304 352 | 
             
                      property :legend_template, as: 'legendTemplate'
         | 
| 305 353 | 
             
                      property :min_alignment_period, as: 'minAlignmentPeriod'
         | 
| 306 354 | 
             
                      property :plot_type, as: 'plotType'
         | 
| 355 | 
            +
                      property :target_axis, as: 'targetAxis'
         | 
| 307 356 | 
             
                      property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
         | 
| 308 357 |  | 
| 309 358 | 
             
                    end
         | 
| @@ -365,6 +414,33 @@ module Google | |
| 365 414 | 
             
                    end
         | 
| 366 415 | 
             
                  end
         | 
| 367 416 |  | 
| 417 | 
            +
                  class ListMetricsScopesByMonitoredProjectResponse
         | 
| 418 | 
            +
                    # @private
         | 
| 419 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 420 | 
            +
                      collection :metrics_scopes, as: 'metricsScopes', class: Google::Apis::MonitoringV1::MetricsScope, decorator: Google::Apis::MonitoringV1::MetricsScope::Representation
         | 
| 421 | 
            +
                  
         | 
| 422 | 
            +
                    end
         | 
| 423 | 
            +
                  end
         | 
| 424 | 
            +
                  
         | 
| 425 | 
            +
                  class MetricsScope
         | 
| 426 | 
            +
                    # @private
         | 
| 427 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 428 | 
            +
                      property :create_time, as: 'createTime'
         | 
| 429 | 
            +
                      collection :monitored_projects, as: 'monitoredProjects', class: Google::Apis::MonitoringV1::MonitoredProject, decorator: Google::Apis::MonitoringV1::MonitoredProject::Representation
         | 
| 430 | 
            +
                  
         | 
| 431 | 
            +
                      property :name, as: 'name'
         | 
| 432 | 
            +
                      property :update_time, as: 'updateTime'
         | 
| 433 | 
            +
                    end
         | 
| 434 | 
            +
                  end
         | 
| 435 | 
            +
                  
         | 
| 436 | 
            +
                  class MonitoredProject
         | 
| 437 | 
            +
                    # @private
         | 
| 438 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 439 | 
            +
                      property :create_time, as: 'createTime'
         | 
| 440 | 
            +
                      property :name, as: 'name'
         | 
| 441 | 
            +
                    end
         | 
| 442 | 
            +
                  end
         | 
| 443 | 
            +
                  
         | 
| 368 444 | 
             
                  class MosaicLayout
         | 
| 369 445 | 
             
                    # @private
         | 
| 370 446 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -374,6 +450,18 @@ module Google | |
| 374 450 | 
             
                    end
         | 
| 375 451 | 
             
                  end
         | 
| 376 452 |  | 
| 453 | 
            +
                  class Operation
         | 
| 454 | 
            +
                    # @private
         | 
| 455 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 456 | 
            +
                      property :done, as: 'done'
         | 
| 457 | 
            +
                      property :error, as: 'error', class: Google::Apis::MonitoringV1::Status, decorator: Google::Apis::MonitoringV1::Status::Representation
         | 
| 458 | 
            +
                  
         | 
| 459 | 
            +
                      hash :metadata, as: 'metadata'
         | 
| 460 | 
            +
                      property :name, as: 'name'
         | 
| 461 | 
            +
                      hash :response, as: 'response'
         | 
| 462 | 
            +
                    end
         | 
| 463 | 
            +
                  end
         | 
| 464 | 
            +
                  
         | 
| 377 465 | 
             
                  class OperationMetadata
         | 
| 378 466 | 
             
                    # @private
         | 
| 379 467 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -470,6 +558,34 @@ module Google | |
| 470 558 | 
             
                    end
         | 
| 471 559 | 
             
                  end
         | 
| 472 560 |  | 
| 561 | 
            +
                  class Status
         | 
| 562 | 
            +
                    # @private
         | 
| 563 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 564 | 
            +
                      property :code, as: 'code'
         | 
| 565 | 
            +
                      collection :details, as: 'details'
         | 
| 566 | 
            +
                      property :message, as: 'message'
         | 
| 567 | 
            +
                    end
         | 
| 568 | 
            +
                  end
         | 
| 569 | 
            +
                  
         | 
| 570 | 
            +
                  class TableDataSet
         | 
| 571 | 
            +
                    # @private
         | 
| 572 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 573 | 
            +
                      property :min_alignment_period, as: 'minAlignmentPeriod'
         | 
| 574 | 
            +
                      property :table_display_options, as: 'tableDisplayOptions', class: Google::Apis::MonitoringV1::TableDisplayOptions, decorator: Google::Apis::MonitoringV1::TableDisplayOptions::Representation
         | 
| 575 | 
            +
                  
         | 
| 576 | 
            +
                      property :table_template, as: 'tableTemplate'
         | 
| 577 | 
            +
                      property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
         | 
| 578 | 
            +
                  
         | 
| 579 | 
            +
                    end
         | 
| 580 | 
            +
                  end
         | 
| 581 | 
            +
                  
         | 
| 582 | 
            +
                  class TableDisplayOptions
         | 
| 583 | 
            +
                    # @private
         | 
| 584 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 585 | 
            +
                      collection :shown_columns, as: 'shownColumns'
         | 
| 586 | 
            +
                    end
         | 
| 587 | 
            +
                  end
         | 
| 588 | 
            +
                  
         | 
| 473 589 | 
             
                  class Text
         | 
| 474 590 | 
             
                    # @private
         | 
| 475 591 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -484,6 +600,7 @@ module Google | |
| 484 600 | 
             
                      property :color, as: 'color'
         | 
| 485 601 | 
             
                      property :direction, as: 'direction'
         | 
| 486 602 | 
             
                      property :label, as: 'label'
         | 
| 603 | 
            +
                      property :target_axis, as: 'targetAxis'
         | 
| 487 604 | 
             
                      property :value, as: 'value'
         | 
| 488 605 | 
             
                    end
         | 
| 489 606 | 
             
                  end
         | 
| @@ -543,6 +660,14 @@ module Google | |
| 543 660 | 
             
                    end
         | 
| 544 661 | 
             
                  end
         | 
| 545 662 |  | 
| 663 | 
            +
                  class TimeSeriesTable
         | 
| 664 | 
            +
                    # @private
         | 
| 665 | 
            +
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| 666 | 
            +
                      collection :data_sets, as: 'dataSets', class: Google::Apis::MonitoringV1::TableDataSet, decorator: Google::Apis::MonitoringV1::TableDataSet::Representation
         | 
| 667 | 
            +
                  
         | 
| 668 | 
            +
                    end
         | 
| 669 | 
            +
                  end
         | 
| 670 | 
            +
                  
         | 
| 546 671 | 
             
                  class Type
         | 
| 547 672 | 
             
                    # @private
         | 
| 548 673 | 
             
                    class Representation < Google::Apis::Core::JsonRepresentation
         | 
| @@ -569,6 +694,8 @@ module Google | |
| 569 694 |  | 
| 570 695 | 
             
                      property :text, as: 'text', class: Google::Apis::MonitoringV1::Text, decorator: Google::Apis::MonitoringV1::Text::Representation
         | 
| 571 696 |  | 
| 697 | 
            +
                      property :time_series_table, as: 'timeSeriesTable', class: Google::Apis::MonitoringV1::TimeSeriesTable, decorator: Google::Apis::MonitoringV1::TimeSeriesTable::Representation
         | 
| 698 | 
            +
                  
         | 
| 572 699 | 
             
                      property :title, as: 'title'
         | 
| 573 700 | 
             
                      property :xy_chart, as: 'xyChart', class: Google::Apis::MonitoringV1::XyChart, decorator: Google::Apis::MonitoringV1::XyChart::Representation
         | 
| 574 701 |  | 
| @@ -587,6 +714,8 @@ module Google | |
| 587 714 | 
             
                      property :timeshift_duration, as: 'timeshiftDuration'
         | 
| 588 715 | 
             
                      property :x_axis, as: 'xAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
         | 
| 589 716 |  | 
| 717 | 
            +
                      property :y2_axis, as: 'y2Axis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
         | 
| 718 | 
            +
                  
         | 
| 590 719 | 
             
                      property :y_axis, as: 'yAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
         | 
| 591 720 |  | 
| 592 721 | 
             
                    end
         | 
| @@ -26,7 +26,8 @@ module Google | |
| 26 26 | 
             
                  #  associated with a Workspace, with a few exceptions as noted on the individual
         | 
| 27 27 | 
             
                  #  method pages. The table entries below are presented in alphabetical order, not
         | 
| 28 28 | 
             
                  #  in order of common use. For explanations of the concepts found in the table
         | 
| 29 | 
            -
                  #  entries, read the Cloud Monitoring documentation.
         | 
| 29 | 
            +
                  #  entries, read the Cloud Monitoring documentation (https://cloud.google.com/
         | 
| 30 | 
            +
                  #  monitoring/docs).
         | 
| 30 31 | 
             
                  #
         | 
| 31 32 | 
             
                  # @example
         | 
| 32 33 | 
             
                  #    require 'google/apis/monitoring_v1'
         | 
| @@ -53,10 +54,178 @@ module Google | |
| 53 54 | 
             
                      @batch_path = 'batch'
         | 
| 54 55 | 
             
                    end
         | 
| 55 56 |  | 
| 57 | 
            +
                    # Returns a specific Metrics Scope, including the list of projects monitored by
         | 
| 58 | 
            +
                    # the specified Metrics Scope.
         | 
| 59 | 
            +
                    # @param [String] name
         | 
| 60 | 
            +
                    #   Required. The resource name of the Metrics Scope. Example: locations/global/
         | 
| 61 | 
            +
                    #   metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
         | 
| 62 | 
            +
                    # @param [String] fields
         | 
| 63 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 64 | 
            +
                    # @param [String] quota_user
         | 
| 65 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 66 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 67 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 68 | 
            +
                    #   Request-specific options
         | 
| 69 | 
            +
                    #
         | 
| 70 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 71 | 
            +
                    # @yieldparam result [Google::Apis::MonitoringV1::MetricsScope] parsed result object
         | 
| 72 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 73 | 
            +
                    #
         | 
| 74 | 
            +
                    # @return [Google::Apis::MonitoringV1::MetricsScope]
         | 
| 75 | 
            +
                    #
         | 
| 76 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 77 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 78 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 79 | 
            +
                    def get_location_global_metrics_scope(name, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 80 | 
            +
                      command = make_simple_command(:get, 'v1/{+name}', options)
         | 
| 81 | 
            +
                      command.response_representation = Google::Apis::MonitoringV1::MetricsScope::Representation
         | 
| 82 | 
            +
                      command.response_class = Google::Apis::MonitoringV1::MetricsScope
         | 
| 83 | 
            +
                      command.params['name'] = name unless name.nil?
         | 
| 84 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 85 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 86 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 87 | 
            +
                    end
         | 
| 88 | 
            +
                    
         | 
| 89 | 
            +
                    # Returns a list of every Metrics Scope that a specific MonitoredProject has
         | 
| 90 | 
            +
                    # been added to. The metrics scope representing the specified monitored project
         | 
| 91 | 
            +
                    # will always be the first entry in the response.
         | 
| 92 | 
            +
                    # @param [String] monitored_resource_container
         | 
| 93 | 
            +
                    #   Required. The resource name of the Monitored Project being requested. Example:
         | 
| 94 | 
            +
                    #   projects/`MONITORED_PROJECT_ID_OR_NUMBER`
         | 
| 95 | 
            +
                    # @param [String] fields
         | 
| 96 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 97 | 
            +
                    # @param [String] quota_user
         | 
| 98 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 99 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 100 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 101 | 
            +
                    #   Request-specific options
         | 
| 102 | 
            +
                    #
         | 
| 103 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 104 | 
            +
                    # @yieldparam result [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse] parsed result object
         | 
| 105 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 106 | 
            +
                    #
         | 
| 107 | 
            +
                    # @return [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse]
         | 
| 108 | 
            +
                    #
         | 
| 109 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 110 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 111 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 112 | 
            +
                    def list_location_global_metrics_scope_metrics_scopes_by_monitored_project(monitored_resource_container: nil, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 113 | 
            +
                      command = make_simple_command(:get, 'v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject', options)
         | 
| 114 | 
            +
                      command.response_representation = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse::Representation
         | 
| 115 | 
            +
                      command.response_class = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse
         | 
| 116 | 
            +
                      command.query['monitoredResourceContainer'] = monitored_resource_container unless monitored_resource_container.nil?
         | 
| 117 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 118 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 119 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 120 | 
            +
                    end
         | 
| 121 | 
            +
                    
         | 
| 122 | 
            +
                    # Adds a MonitoredProject with the given project ID to the specified Metrics
         | 
| 123 | 
            +
                    # Scope.
         | 
| 124 | 
            +
                    # @param [String] parent
         | 
| 125 | 
            +
                    #   Required. The resource name of the existing Metrics Scope that will monitor
         | 
| 126 | 
            +
                    #   this project. Example: locations/global/metricsScopes/`
         | 
| 127 | 
            +
                    #   SCOPING_PROJECT_ID_OR_NUMBER`
         | 
| 128 | 
            +
                    # @param [Google::Apis::MonitoringV1::MonitoredProject] monitored_project_object
         | 
| 129 | 
            +
                    # @param [String] fields
         | 
| 130 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 131 | 
            +
                    # @param [String] quota_user
         | 
| 132 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 133 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 134 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 135 | 
            +
                    #   Request-specific options
         | 
| 136 | 
            +
                    #
         | 
| 137 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 138 | 
            +
                    # @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
         | 
| 139 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 140 | 
            +
                    #
         | 
| 141 | 
            +
                    # @return [Google::Apis::MonitoringV1::Operation]
         | 
| 142 | 
            +
                    #
         | 
| 143 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 144 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 145 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 146 | 
            +
                    def create_location_global_metrics_scope_project(parent, monitored_project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 147 | 
            +
                      command = make_simple_command(:post, 'v1/{+parent}/projects', options)
         | 
| 148 | 
            +
                      command.request_representation = Google::Apis::MonitoringV1::MonitoredProject::Representation
         | 
| 149 | 
            +
                      command.request_object = monitored_project_object
         | 
| 150 | 
            +
                      command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
         | 
| 151 | 
            +
                      command.response_class = Google::Apis::MonitoringV1::Operation
         | 
| 152 | 
            +
                      command.params['parent'] = parent unless parent.nil?
         | 
| 153 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 154 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 155 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 156 | 
            +
                    end
         | 
| 157 | 
            +
                    
         | 
| 158 | 
            +
                    # Deletes a MonitoredProject from the specified Metrics Scope.
         | 
| 159 | 
            +
                    # @param [String] name
         | 
| 160 | 
            +
                    #   Required. The resource name of the MonitoredProject. Example: locations/global/
         | 
| 161 | 
            +
                    #   metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
         | 
| 162 | 
            +
                    #   MONITORED_PROJECT_ID_OR_NUMBER`Authorization requires the following Google IAM
         | 
| 163 | 
            +
                    #   (https://cloud.google.com/iam) permissions on both the Metrics Scope and on
         | 
| 164 | 
            +
                    #   the MonitoredProject: monitoring.metricsScopes.link
         | 
| 165 | 
            +
                    # @param [String] fields
         | 
| 166 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 167 | 
            +
                    # @param [String] quota_user
         | 
| 168 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 169 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 170 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 171 | 
            +
                    #   Request-specific options
         | 
| 172 | 
            +
                    #
         | 
| 173 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 174 | 
            +
                    # @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
         | 
| 175 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 176 | 
            +
                    #
         | 
| 177 | 
            +
                    # @return [Google::Apis::MonitoringV1::Operation]
         | 
| 178 | 
            +
                    #
         | 
| 179 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 180 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 181 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 182 | 
            +
                    def delete_location_global_metrics_scope_project(name, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 183 | 
            +
                      command = make_simple_command(:delete, 'v1/{+name}', options)
         | 
| 184 | 
            +
                      command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
         | 
| 185 | 
            +
                      command.response_class = Google::Apis::MonitoringV1::Operation
         | 
| 186 | 
            +
                      command.params['name'] = name unless name.nil?
         | 
| 187 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 188 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 189 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 190 | 
            +
                    end
         | 
| 191 | 
            +
                    
         | 
| 192 | 
            +
                    # Gets the latest state of a long-running operation. Clients can use this method
         | 
| 193 | 
            +
                    # to poll the operation result at intervals as recommended by the API service.
         | 
| 194 | 
            +
                    # @param [String] name
         | 
| 195 | 
            +
                    #   The name of the operation resource.
         | 
| 196 | 
            +
                    # @param [String] fields
         | 
| 197 | 
            +
                    #   Selector specifying which fields to include in a partial response.
         | 
| 198 | 
            +
                    # @param [String] quota_user
         | 
| 199 | 
            +
                    #   Available to use for quota purposes for server-side applications. Can be any
         | 
| 200 | 
            +
                    #   arbitrary string assigned to a user, but should not exceed 40 characters.
         | 
| 201 | 
            +
                    # @param [Google::Apis::RequestOptions] options
         | 
| 202 | 
            +
                    #   Request-specific options
         | 
| 203 | 
            +
                    #
         | 
| 204 | 
            +
                    # @yield [result, err] Result & error if block supplied
         | 
| 205 | 
            +
                    # @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
         | 
| 206 | 
            +
                    # @yieldparam err [StandardError] error object if request failed
         | 
| 207 | 
            +
                    #
         | 
| 208 | 
            +
                    # @return [Google::Apis::MonitoringV1::Operation]
         | 
| 209 | 
            +
                    #
         | 
| 210 | 
            +
                    # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
         | 
| 211 | 
            +
                    # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
         | 
| 212 | 
            +
                    # @raise [Google::Apis::AuthorizationError] Authorization is required
         | 
| 213 | 
            +
                    def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
         | 
| 214 | 
            +
                      command = make_simple_command(:get, 'v1/{+name}', options)
         | 
| 215 | 
            +
                      command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
         | 
| 216 | 
            +
                      command.response_class = Google::Apis::MonitoringV1::Operation
         | 
| 217 | 
            +
                      command.params['name'] = name unless name.nil?
         | 
| 218 | 
            +
                      command.query['fields'] = fields unless fields.nil?
         | 
| 219 | 
            +
                      command.query['quotaUser'] = quota_user unless quota_user.nil?
         | 
| 220 | 
            +
                      execute_or_queue_command(command, &block)
         | 
| 221 | 
            +
                    end
         | 
| 222 | 
            +
                    
         | 
| 56 223 | 
             
                    # Creates a new custom dashboard. For examples on how you can use this API to
         | 
| 57 | 
            -
                    # create dashboards, see Managing dashboards by API. | 
| 58 | 
            -
                    # monitoring | 
| 59 | 
            -
                    #  | 
| 224 | 
            +
                    # create dashboards, see Managing dashboards by API (https://cloud.google.com/
         | 
| 225 | 
            +
                    # monitoring/dashboards/api-dashboard). This method requires the monitoring.
         | 
| 226 | 
            +
                    # dashboards.create permission on the specified project. For more information
         | 
| 227 | 
            +
                    # about permissions, see Cloud Identity and Access Management (https://cloud.
         | 
| 228 | 
            +
                    # google.com/iam).
         | 
| 60 229 | 
             
                    # @param [String] parent
         | 
| 61 230 | 
             
                    #   Required. The project on which to execute the request. The format is: projects/
         | 
| 62 231 | 
             
                    #   [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard
         | 
| @@ -25,7 +25,8 @@ module Google | |
| 25 25 | 
             
                # associated with a Workspace, with a few exceptions as noted on the individual
         | 
| 26 26 | 
             
                # method pages. The table entries below are presented in alphabetical order, not
         | 
| 27 27 | 
             
                # in order of common use. For explanations of the concepts found in the table
         | 
| 28 | 
            -
                # entries, read the Cloud Monitoring documentation.
         | 
| 28 | 
            +
                # entries, read the Cloud Monitoring documentation (https://cloud.google.com/
         | 
| 29 | 
            +
                # monitoring/docs).
         | 
| 29 30 | 
             
                #
         | 
| 30 31 | 
             
                # @see https://cloud.google.com/monitoring/api/
         | 
| 31 32 | 
             
                module MonitoringV1
         | 
| @@ -33,7 +34,7 @@ module Google | |
| 33 34 | 
             
                  # This is NOT the gem version.
         | 
| 34 35 | 
             
                  VERSION = 'V1'
         | 
| 35 36 |  | 
| 36 | 
            -
                  # See, edit, configure, and delete your Google Cloud  | 
| 37 | 
            +
                  # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
         | 
| 37 38 | 
             
                  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
         | 
| 38 39 |  | 
| 39 40 | 
             
                  # View and write monitoring data for all of your Google and third-party Cloud and API projects
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: google-apis-monitoring_v1
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.13.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Google LLC
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021- | 
| 11 | 
            +
            date: 2021-09-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: google-apis-core
         | 
| @@ -58,7 +58,7 @@ licenses: | |
| 58 58 | 
             
            metadata:
         | 
| 59 59 | 
             
              bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
         | 
| 60 60 | 
             
              changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1/CHANGELOG.md
         | 
| 61 | 
            -
              documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0. | 
| 61 | 
            +
              documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.13.0
         | 
| 62 62 | 
             
              source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
         | 
| 63 63 | 
             
            post_install_message: 
         | 
| 64 64 | 
             
            rdoc_options: []
         |